8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 03:23:04 +01:00

Add forgotten (by me) length checks

This commit is contained in:
skidder 2004-06-29 12:41:22 +00:00
parent 69fbb34a82
commit bb175ca5f2

View File

@ -95,6 +95,8 @@ namespace Firebird
stringBuffer = inlineBuffer;
bufferSize = INLINE_BUFFER_SIZE;
} else {
stringBuffer = NULL; // Be safe in case of exception
checkLength(len);
stringBuffer = FB_NEW(getPool()) char_type[newSize];
bufferSize = newSize;
}