Skip to content

Commit

Permalink
Merge pull request #81 from red-soft-ru/fb-master
Browse files Browse the repository at this point in the history
Clear input buffer memory after allocating it to remove garbage
  • Loading branch information
rowland committed Apr 4, 2023
2 parents ca04e30 + cdd0087 commit dd4552d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fb.c
Expand Up @@ -2046,6 +2046,7 @@ static VALUE cursor_execute2(VALUE args)
length = calculate_buffsize(fb_cursor->i_sqlda);
if (length > fb_cursor->i_buffer_size) {
fb_cursor->i_buffer = xrealloc(fb_cursor->i_buffer, length);
memset(fb_cursor->i_buffer, 0, length);
fb_cursor->i_buffer_size = length;
}
}
Expand Down

0 comments on commit dd4552d

Please sign in to comment.