mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 12:43:03 +01:00
isql: fix buffer overflow when 'set width' sets bigger width
than column's natural size
This commit is contained in:
parent
7d64b76c14
commit
1f6eaf18e5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user