]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r300378:
authorpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 29 May 2016 16:32:56 +0000 (16:32 +0000)
committerpfg <pfg@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 29 May 2016 16:32:56 +0000 (16:32 +0000)
commit1f3095a90a148f1abfc5878ee040aec1572927e0
tree61876d83850b05ea2c71782a5e21311ad7e3acb8
parentc17a65eb9d6b5c7a843d667889573737418c0cc5
MFC r300378:
libc/regex: fix two buffer underruns.

Fix some rather complex regex issues found on OpenBSD as part of some
ongoing work to fix a sed(1) bug.

Curiously the OpenBSD tests don't trigger segfaults on FreeBSD but the
bugs were confirmed by running a port of FreeBSD's regex under OpenBSD's
malloc. Huge thanks to Ingo for confirming the behavior.

Obtained from: OpenBSD (CVS 1.20, 1.21)

git-svn-id: svn://svn.freebsd.org/base/stable/9@300964 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/regex/engine.c