summaryrefslogtreecommitdiff
path: root/lib/libcurses/unctrl.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2019-02-05 19:38:38 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2019-02-05 19:38:38 +0000
commit55bbd64aec4aee727288e6ff8dde1404d554c10c (patch)
treee2753ec92f483a739e5022e539f011117b38a317 /lib/libcurses/unctrl.h
parent120e6b552c34597812e11d0548ee94172573dc22 (diff)
Avoid an out of bounds read when regcomp() is passed a bad expression.
When an invalid regular expression is passed, seterr() is called which sets p->error to the appropriate error code and sets p->next and p->end to nuls[]. However, p->next is decremented in the default case in p_ere_exp() and p_simp_re() which makes it point to one byte before nuls[]. From FreeBSD. OK tedu@ deraadt@
Diffstat (limited to 'lib/libcurses/unctrl.h')
0 files changed, 0 insertions, 0 deletions