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

Fixed CORE-2055: BOF in fbclient

This commit is contained in:
alexpeshkoff 2008-08-27 08:05:29 +00:00
parent d5e73daa36
commit 475913287b

View File

@ -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 */