freebsd-skq/lib/libc
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
..
aarch64 Remove brk and sbrk from arm64. They were defined in The Single UNIX 2016-05-20 15:04:48 +00:00
amd64 libc: spelling fixes. 2016-04-30 01:24:24 +00:00
arm Make armv6 hard float abi by default. Kill armv6hf. 2016-05-18 06:01:18 +00:00
capability use .Mt to mark up email addresses consistently (part4) 2014-06-23 08:25:03 +00:00
compat-43 Use ANSI C prototypes. Eliminates -Wold-style-definition warnings. 2015-09-20 20:53:24 +00:00
db libc: make more use of the howmany() macro when available. 2016-04-26 01:17:05 +00:00
gdtoa META MODE: Don't create .meta files when symlinking sources into the obj directory. 2015-11-25 19:44:43 +00:00
gen Fix Coverity CID 1016714 Resource leak in process_file_actions_entry() 2016-05-25 07:13:53 +00:00
gmon Replace the last non-optional use of sbrk() in the tree with mmap(). 2016-01-21 18:17:19 +00:00
i386 libc: stop exporting curbrk and minbrk in the private namespace 2016-03-24 18:47:19 +00:00
iconv iconvctl(3): remove superfluous NULL pointer tests 2016-05-14 00:35:35 +00:00
include Add implementation of robust mutexes, hopefully close enough to the 2016-05-17 09:56:22 +00:00
inet libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
isc libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
locale libc: spelling fixes. 2016-04-30 01:24:24 +00:00
md Bring the md5 functions into libc for internal use only. 2014-08-12 12:25:56 +00:00
mips libc: stop exporting cerror 2016-03-30 14:42:09 +00:00
nameser libc: spelling fixes. 2016-04-30 01:24:24 +00:00
net Don't call free_addrselectpolicy(&policyhead) before policyhead has been 2016-05-16 08:13:30 +00:00
nls Move logic to destroy a struct catentry to its own function. 2016-02-02 23:33:58 +00:00
posix1e libc: spelling fixes. 2016-04-30 01:24:24 +00:00
powerpc libc: make some more use of the nitems() macro. 2016-04-16 17:52:00 +00:00
powerpc64 libc: make some more use of the nitems() macro. 2016-04-16 17:52:00 +00:00
quad Remove MK_ARM_EABI, the armeb issues have been fixed. The code to support 2014-10-01 08:26:51 +00:00
regex libc: regexec(3) adjustment. 2016-05-25 15:35:23 +00:00
resolv Since rdata is only used as an argument to the immediately following 2016-05-16 01:38:24 +00:00
riscv Remove legacy brk and sbrk from RISC-V. 2016-05-25 14:08:21 +00:00
rpc Fix up r300385 2016-05-24 19:52:05 +00:00
secure libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
softfloat libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
sparc64 libc: spelling fixes. 2016-04-30 01:24:24 +00:00
stdio libc: Actually export fopencookie(3) 2016-05-12 21:30:22 +00:00
stdlib 1) POSIX prohibits printing errors to stderr here and require 2016-05-22 06:18:59 +00:00
stdtime Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally. 2016-03-26 03:46:12 +00:00
string libc: spelling fixes. 2016-04-30 01:24:24 +00:00
sys vfork(2): Mention some risks of calling vfork() from application code. 2016-05-22 13:32:45 +00:00
tests iconvctl(3): remove superfluous NULL pointer tests 2016-05-14 00:35:35 +00:00
uuid libc: replace 0 with NULL for pointers. 2016-04-10 19:33:58 +00:00
xdr libc/xdr: unsign some loop indexes. 2016-05-06 16:03:40 +00:00
yp libc: do not include <sys/types.h> where <sys/param.h> was already included 2016-04-18 21:05:15 +00:00
libc.ldscript Attempt to move the POSIX iconv* symbols out of runtime linker space. 2013-11-17 22:52:17 +00:00
Makefile Make armv6 hard float abi by default. Kill armv6hf. 2016-05-18 06:01:18 +00:00
Makefile.depend DIRDEPS_BUILD: Regenerate without local dependencies. 2016-02-24 17:20:11 +00:00
Versions.def Fix the inheritance of the FBSDprivate_1.0 namespace. 2014-04-03 17:31:38 +00:00