<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libc/regex, branch jd/simplify-queueing</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/regex?h=jd%2Fsimplify-queueing</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/regex?h=jd%2Fsimplify-queueing'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-02-05T20:57:30Z</updated>
<entry>
<title>Fix typo in last commit.</title>
<updated>2019-02-05T20:57:30Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2019-02-05T20:57:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=922426e12903b564c261a1aa4628ea473c0f2f1b'/>
<id>urn:sha1:922426e12903b564c261a1aa4628ea473c0f2f1b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid an out of bounds read when regcomp() is passed a bad expression.</title>
<updated>2019-02-05T19:38:37Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2019-02-05T19:38:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=a89c4902254dfa1737ffc8886013879ba1d03c88'/>
<id>urn:sha1:a89c4902254dfa1737ffc8886013879ba1d03c88</id>
<content type='text'>
When an invalid regular expression is passed, seterr() is called which
sets p-&gt;error to the appropriate error code and sets p-&gt;next and
p-&gt;end to nuls[].  However, p-&gt;next is decremented in the default
case in p_ere_exp() and p_simp_re() which makes it point to one
byte before nuls[].  From FreeBSD.  OK tedu@ deraadt@
</content>
</entry>
<entry>
<title>Drop a const-bomb on regexec. It's probably not a good idea to remove a</title>
<updated>2018-07-11T12:38:46Z</updated>
<author>
<name>martijn</name>
<email>martijn@openbsd.org</email>
</author>
<published>2018-07-11T12:38:46Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d1a1db7f71b400e6ae6b5a9641ad1496d1d76168'/>
<id>urn:sha1:d1a1db7f71b400e6ae6b5a9641ad1496d1d76168</id>
<content type='text'>
const promise when processing it in the regex engine.

Minor tweak and OK schwarze@
</content>
</entry>
<entry>
<title>fix oob read; form llvm via Vlad Tsyrklevich; ok millert@</title>
<updated>2017-10-30T06:48:20Z</updated>
<author>
<name>otto</name>
<email>otto@openbsd.org</email>
</author>
<published>2017-10-30T06:48:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=25bee7e617fe3b722ecfc66dd9214423b9581849'/>
<id>urn:sha1:25bee7e617fe3b722ecfc66dd9214423b9581849</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clarify code by eliminating unused #define's MUSTSEE, MUSTNOTSEE and inlining</title>
<updated>2016-12-22T00:09:07Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2016-12-22T00:09:07Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=abe8d622e3741486fb83cda43b0e115f380ecc95'/>
<id>urn:sha1:abe8d622e3741486fb83cda43b0e115f380ecc95</id>
<content type='text'>
MUSTEAT.

ok tom@
</content>
</entry>
<entry>
<title>Adopt relevant part of NetBSD's r1.7 commit to discard unused results of the</title>
<updated>2016-12-21T15:13:50Z</updated>
<author>
<name>krw</name>
<email>krw@openbsd.org</email>
</author>
<published>2016-12-21T15:13:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d4b3d3fe2366719aecc5a01b4cc0e28bfc865649'/>
<id>urn:sha1:d4b3d3fe2366719aecc5a01b4cc0e28bfc865649</id>
<content type='text'>
expressions generated by the REQUIRE() macro. Thus eliminating from build
output 100 lines or so of gcc complaints about "computed but not used".

cluebat &amp; ok tom@
</content>
</entry>
<entry>
<title>Delete casts to off_t and size_t that are implied by assignments</title>
<updated>2016-09-21T04:38:56Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2016-09-21T04:38:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3240e6a8f93e9dcb3b95e7fafb9e2b27f13c7c9d'/>
<id>urn:sha1:3240e6a8f93e9dcb3b95e7fafb9e2b27f13c7c9d</id>
<content type='text'>
or prototypes.  Ditto for some of the char* and void* casts too.

verified no change to instructions on ILP32 (i386) and LP64 (amd64)
ok natano@ abluhm@ deraadt@ millert@
</content>
</entry>
<entry>
<title>Change the way regexec handles REG_STARTEND combined with REG_NOTBOL.</title>
<updated>2016-05-26T05:46:44Z</updated>
<author>
<name>martijn</name>
<email>martijn@openbsd.org</email>
</author>
<published>2016-05-26T05:46:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e315dedff8d9cbbf64bc080d283f4c20ae7a136a'/>
<id>urn:sha1:e315dedff8d9cbbf64bc080d283f4c20ae7a136a</id>
<content type='text'>
The new code sees this combination as a continuation of string at offset
pmatch[0].rm_so, instead of a new string which starts at that offset.
This change fixes a search quirk in vi and is needed for upcoming fixes in
ed/sed/vi.

This new behaviour is also used in gnu regex.

Lots of help from schwarze@
Manpage bits by schwarze@
OK schwarze@ and millert@
</content>
</entry>
<entry>
<title>KNF with respect to indentation; no code change</title>
<updated>2016-05-25T21:01:11Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-25T21:01:11Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=af486f332f0ca8a257101e8b24f23cc2c8135510'/>
<id>urn:sha1:af486f332f0ca8a257101e8b24f23cc2c8135510</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix another one-byte buffer underflow (read access only).</title>
<updated>2016-05-25T20:48:22Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-25T20:48:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=1ca78303dccb2bf8b2185fe553ca3d10ba6d750b'/>
<id>urn:sha1:1ca78303dccb2bf8b2185fe553ca3d10ba6d750b</id>
<content type='text'>
This change touches code that only runs when REG_BASIC is given and the
regular expression is anchored with [[:&lt;:]] or \&lt; _and_ uses backreferences.

Simplify the logic while here, already looking at the previous character
if REG_STARTEND and REG_NOTBOL are both in use, in anticipation of
martijn@'s upcoming patch which will further improve REG_STARTEND.

OK millert@ martijn@
Also tested by Pedro Giffuni (pfg) on FreeBSD.
</content>
</entry>
</feed>
