mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:03:02 +01:00
Add forgotten (by me) length checks
This commit is contained in:
parent
69fbb34a82
commit
bb175ca5f2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user