mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 23:23:04 +01:00
Fixed CORE-2055: BOF in fbclient
This commit is contained in:
parent
d5e73daa36
commit
475913287b
@ -602,6 +602,10 @@ void REMOTE_save_status_strings( ISC_STATUS* vector)
|
||||
if (status != isc_arg_cstring)
|
||||
l = strlen(p) + 1;
|
||||
|
||||
// if string too long, truncate it
|
||||
if (l > ATTACH_FAILURE_SPACE / 4)
|
||||
l = ATTACH_FAILURE_SPACE / 4;
|
||||
|
||||
/* If there isn't any more room in the buffer,
|
||||
start at the beginning again */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user