summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/utils.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-05-25 20:48:22 +0000
committerschwarze <schwarze@openbsd.org>2016-05-25 20:48:22 +0000
commit1ca78303dccb2bf8b2185fe553ca3d10ba6d750b (patch)
tree027747f66478cce162a431bae551b124624720bf /lib/libc/regex/utils.h
parentMust extract uvm_vnode from uvm_object first before reading the vnode (diff)
downloadwireguard-openbsd-1ca78303dccb2bf8b2185fe553ca3d10ba6d750b.tar.xz
wireguard-openbsd-1ca78303dccb2bf8b2185fe553ca3d10ba6d750b.zip
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.
Diffstat (limited to 'lib/libc/regex/utils.h')
0 files changed, 0 insertions, 0 deletions