CVSROOT:        /cvs
Module name:    src
Changes by:     schwa...@cvs.openbsd.org        2016/05/25 14:48:22

Modified files:
        lib/libc/regex : engine.c 

Log message:
Fix another one-byte buffer underflow (read access only).
This change touches code that only runs when REG_BASIC is given and the
regular expression is anchored with [[:<:]] or \< _and_ uses backreferences.

Simplify the logic while here, already looking at the previous character
if REG_STARTEND and REG_NOTBOL are both in use, in anticipation of
martijn@'s upcoming patch which will further improve REG_STARTEND.

OK millert@ martijn@
Also tested by Pedro Giffuni (pfg) on FreeBSD.

Reply via email to