NetBSD/lib
christos b0735e4145 Add some better error handling from FreeBSD, although we don't
suffer from the same issue, since we don't decrement p->next, like
FreeBSD does because we don't have multibyte support (yet). We
choose to do this so we can fail faster and more predictably.

Here's the original FreeBSD message:

When passed the invalid regular expression "a**", the error is
eventually detected and seterr() is called. It sets p->error
appropriatly and p->next and p->end to nuls which is a never used char
nuls[10] which is zeros due to .bss initialization. Unfortunatly,
p_ere_exp() and p_simp_re() both have fall through cases where they set
the error, decrement p->next and access it which means a read from what
ever .bss variable comes before nuls.

Found with regex_test:repet_multi and CHERI bounds checking.

Reviewed by:	ngie, pfg, emaste
Obtained from:	CheriBSD
Sponsored by:	DARPA, AFRL
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D10541
2019-02-07 22:22:31 +00:00
..
csu fix duplicated chunk from merge 2019-01-27 04:33:29 +00:00
i18n_module
libarch Bump - removal of i386_vm86 and i386_pmc. 2017-08-12 19:48:28 +00:00
libbluetooth Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
libbpfjit
libbsdmalloc
libbz2 - use -Wno-error=implicit-fallthrough with GCC7. 2019-02-04 04:05:15 +00:00
libc Add some better error handling from FreeBSD, although we don't 2019-02-07 22:22:31 +00:00
libc_fp move shlib_version into the main directory 2016-10-11 16:55:22 +00:00
libc_vfp The fpu mode for VFP2 instructions is still just vfp. 2018-07-19 19:35:02 +00:00
libcompat Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
libcrypt
libcurses At some point we lost the text that explains the difference between 2019-01-11 06:14:39 +00:00
libdm Clean up double free in some error paths that did trigger 2018-12-27 14:05:54 +00:00
libedit PR/53856: F. Aragon: editline/libedit not prompting colors in readline mode 2019-01-10 18:41:56 +00:00
libexecinfo make the backtrace()'s tracer() return _URC_FOREIGN_EXCEPTION_CAUGHT 2019-01-30 22:46:49 +00:00
libform "s/ are are / are /" in comment. No functional change. 2018-11-08 06:34:40 +00:00
libintl check for snprintf() truncation and fail sanely if so, rather than 2019-02-04 08:21:11 +00:00
libipsec Remove dead references to netinet6/ipsec.h. 2018-09-06 09:54:36 +00:00
libisns Typos. 2018-02-08 09:05:16 +00:00
libkern
libkvm be consistent about uint64_t and bit masks. 2018-12-19 11:02:21 +00:00
liblwres
libm - avoid uninitialised memory usage 2019-02-04 04:37:50 +00:00
libmenu Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
libnpf fix duplicated chunk from merge 2019-01-27 04:33:29 +00:00
libnvmm Improvements: 2019-02-07 10:58:45 +00:00
libossaudio Fix minor bugs of SNDCTL_DSP_GETISPACE. 2019-02-02 04:52:16 +00:00
libp2k Change VOP_REMOVE and VOP_RMDIR to preserve lock/ref on dvp. 2017-04-26 03:02:47 +00:00
libpam adjust to new libssh api. 2018-08-26 08:54:03 +00:00
libpanel bump warns 2016-10-03 17:06:58 +00:00
libpci Add function names to the NAME section 2017-10-22 15:28:48 +00:00
libperfuse It's section 3 page, not section 2. While here, xref puffs(3) in the 2019-01-23 19:43:49 +00:00
libposix
libppath
libprop
libpthread Implement support for "pshared" POSIX semaphores. 2019-02-03 03:20:23 +00:00
libpuffs revert previous now that MAP_ALIGNED has been fixed. 2018-07-09 00:47:47 +00:00
libquota
libradius Oops forgot one openssl version name change 2018-02-07 22:51:31 +00:00
librefuse fuse_main(3): Support general fuse options via fuse_parse_cmdline(3) 2016-11-20 13:28:32 +00:00
libresolv Remove unused macro. 2018-12-13 08:39:34 +00:00
librmt Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
librpcsvc
librt Implement support for "pshared" POSIX semaphores. 2019-02-03 03:20:23 +00:00
librump
librumpclient make it the same as rump.h 2017-05-11 18:44:50 +00:00
librumpdev
librumphijack Add an option "modctl" to capture modctl(). 2018-12-16 14:03:37 +00:00
librumpnet
librumpres Add a library for the rump resolver interception code so that it will become 2017-10-10 19:28:33 +00:00
librumpuser Distinguish spin mutex and adaptive mutex on rump kernels for LOCKDEBUG 2017-12-27 09:01:53 +00:00
librumpvfs
libskey Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
libss
libtelnet Match the function prototype of encrypthandler instead of casting to it. 2019-01-05 08:55:58 +00:00
libterminfo Fix pasto. 2018-10-10 21:09:58 +00:00
libukfs Remove exgtraneous comma 2018-03-12 11:56:34 +00:00
libusbhid Fix fallout from hid factorisation: 2017-12-10 20:38:13 +00:00
libutil Document "ROOT." syntax before documenting a generic . 2018-12-28 18:44:11 +00:00
libwrap remove the new check for tlen >= PTRDIFF_MAX. the prior 2019-01-24 22:07:14 +00:00
liby
libz - use -Wno-error=implicit-fallthrough with GCC7. 2019-02-04 04:05:15 +00:00
lua Hello bozohttpd(3lua) 2018-05-03 22:51:17 +00:00
npf NPF: Major rework -- migrate NPF to the libnv library. 2018-09-29 14:41:35 +00:00
Makefile move sqlite earlier in its section. my build often sits with only 3 2018-12-24 22:02:32 +00:00
Makefile.inc
bumpversion
checkoldver
checkver
checkvers