freebsd-dev/lib/libc/regex
Pedro F. Giffuni 93ea9f9fa1 libc: regexec(3) adjustment.
Change the behavior of when REG_STARTEND is combined with REG_NOTBOL.

From the original posting[1]:

"Enable the assumption that pmatch[0].rm_so is a continuation offset
to  a string and allows us to do a proper assessment of the character
in  regards to it's word position ('^' or '\<'), without risking going
into unallocated memory."

This change makes us similar to how glibc handles REG_STARTEND |
REG_NOTBOL, and is closely related to a soon-to-land fix to sed.

Special thanks to Martijn van Duren and Ingo Schwarze for working
out some consistent behaviour.

Differential Revision:	https://reviews.freebsd.org/D6257
Taken from:	openbsd-tech 2016-05-24 [1]  (Martijn van Duren)
Relnotes:	yes
MFC after:	1 month
2016-05-25 15:35:23 +00:00
..
grot Add -static to CFLAGS to unbreak the tests by using a libc.a with 2015-12-13 06:33:52 +00:00
cname.h
COPYRIGHT
engine.c libc: regexec(3) adjustment. 2016-05-25 15:35:23 +00:00
Makefile.inc Replace use of ${.CURDIR} by ${LIBC_SRCTOP} and define ${LIBC_SRCTOP} 2014-03-04 02:19:39 +00:00
re_format.7 mdoc: rendering fixes 2015-04-26 10:55:39 +00:00
regcomp.c libc: spelling fixes. 2016-04-30 01:24:24 +00:00
regerror.c
regex2.h
regex.3 libc: regexec(3) adjustment. 2016-05-25 15:35:23 +00:00
regexec.c
regfree.c
Symbol.map
utils.h
WHATSNEW