summaryrefslogtreecommitdiff
path: root/sbin/fsck_ext2fs/pass2.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2016-04-28 09:44:37 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2016-04-28 09:44:37 +0000
commit195c612ac79f557f8bcc5ca5c40fa937a27a9c2a (patch)
tree9ee6b0727cf9820fcd59331250c41a83b8d3e135 /sbin/fsck_ext2fs/pass2.c
parent135364eaa26ab03925c5bdee4be274eec94daee5 (diff)
Initialize the search buffer.
Otherwise, if you called ed-search-prev-history before doing any history search but after entering at least one line into the history, the buffer could get accessed uninitialized, potentially resulting in a read buffer overrun. Segfault reported in sftp(1) via djm@ by Alf Schlichting <A dot Schlichting at lemarit dot com>, who also confirmed that the patch fixes the issue for him. OK martijn@ czarkoff@
Diffstat (limited to 'sbin/fsck_ext2fs/pass2.c')
0 files changed, 0 insertions, 0 deletions