diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2019-02-05 19:38:38 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2019-02-05 19:38:38 +0000 |
commit | 55bbd64aec4aee727288e6ff8dde1404d554c10c (patch) | |
tree | e2753ec92f483a739e5022e539f011117b38a317 /lib/libcurses/unctrl.h | |
parent | 120e6b552c34597812e11d0548ee94172573dc22 (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