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

Fix buffer overflow.

This commit is contained in:
Adriano dos Santos Fernandes 2016-08-16 13:35:06 -03:00
parent 610594a525
commit fb282b5a51

View File

@ -3392,10 +3392,14 @@ static void blr_print_verb(gds_ctl* control, SSHORT level)
int inputs = 0;
int outputs = 0;
while ((blr_operator = control->ctl_blr_reader.getByte()) != blr_end)
{
blr_indent(control, level);
blr_format(control, "blr_exec_stmt_%s, ", sub_codes[blr_operator]);
if (blr_operator > 0 && blr_operator < FB_NELEM(sub_codes))
blr_format(control, "blr_exec_stmt_%s, ", sub_codes[blr_operator]);
switch (blr_operator)
{
case blr_exec_stmt_inputs: