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

isql: fix buffer overflow when 'set width' sets bigger width

than column's natural size
This commit is contained in:
mkubecek 2012-05-29 20:19:58 +00:00
parent 7d64b76c14
commit 1f6eaf18e5

View File

@ -8430,6 +8430,7 @@ static SLONG process_sqlda_display(XSQLDA* const sqlda, SLONG buffer[], int pad[
{
if (!global_Cols.find(var->aliasname, &pad[i]) && global_Col_default)
pad[i] = global_Col_default;
disp_length = pad[i];
}
if ((type == SQL_TEXT || type == SQL_VARYING) && var->sqlsubtype == 4)