CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2016/04/28 03:44:36
Modified files: lib/libedit : search.c Log message: 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@