HomeFreeBSD

libc/regex: fix two buffer underruns.

Description

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.

Taken from: Ingo Schwarze (through openbsd-tech 2016-05-15)
MFC after: 1 week

Details

Provenance
pfgAuthored on
Parents
rS300377: ndis(4): Avoid overflow.
Branches
Unknown
Tags
Unknown