<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libc/regex/engine.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/regex/engine.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/regex/engine.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2018-07-11T12:38:46Z</updated>
<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>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>
<entry>
<title>Fix a one-byte buffer underflow (read access only).</title>
<updated>2016-05-17T22:03:18Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-17T22:03:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3465aa042d56618335f9d118af231bb11b131d04'/>
<id>urn:sha1:3465aa042d56618335f9d118af231bb11b131d04</id>
<content type='text'>
This change touches code that only runs when REG_BASIC is given and
the regular expression is anchored with ^ _and_ uses backreferences.
The segfault could only be triggered when the ^ anchor was inside
a leading () subexpression quantified with *.

OK martijn@
Patch also proofread by Pedro Giffuni &lt;pfg at FreeBSD dot org&gt;.
</content>
</entry>
<entry>
<title>Remove NULL-checks before free() and needless argument casts.</title>
<updated>2015-12-28T23:01:22Z</updated>
<author>
<name>mmcc</name>
<email>mmcc@openbsd.org</email>
</author>
<published>2015-12-28T23:01:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=101bb3659f122057afe4c67c9bce207cb2bdbab4'/>
<id>urn:sha1:101bb3659f122057afe4c67c9bce207cb2bdbab4</id>
<content type='text'>
ok tb@
</content>
</entry>
<entry>
<title>use reallocarray(NULL, a, b) instead of malloc(a, b), which gives us</title>
<updated>2014-10-09T02:50:16Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2014-10-09T02:50:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=373c8319a991c7b16e6312d320f01a04cfae8990'/>
<id>urn:sha1:373c8319a991c7b16e6312d320f01a04cfae8990</id>
<content type='text'>
proper mult int overflow detection.  The existing code already handles
malloc failure properly, of course.
</content>
</entry>
<entry>
<title>The print() routine here can be passed at least some of the non-characters</title>
<updated>2013-11-28T05:09:45Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2013-11-28T05:09:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0595d4db69537d409abd3886c82020aab8b0c65a'/>
<id>urn:sha1:0595d4db69537d409abd3886c82020aab8b0c65a</id>
<content type='text'>
OUT to EOW, making its domain CHAR_MIN...CODEMAX.  It makes sense to have
pchar() take the same domain and output those non-characters appropriately,
so the (unsigned char) cast for isprint() goes in pchar().  Constipate
pchar() while we're here, and let print() pass through NUL to it, as it
knows how to output it unambiguously.

ok otto@ millert@
</content>
</entry>
<entry>
<title>silence some warnings by adding prototypes, casts, and headers as</title>
<updated>2013-04-17T17:39:29Z</updated>
<author>
<name>tedu</name>
<email>tedu@openbsd.org</email>
</author>
<published>2013-04-17T17:39:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2be36617bb6be3f60e44cb636fdb1fa78531d399'/>
<id>urn:sha1:2be36617bb6be3f60e44cb636fdb1fa78531d399</id>
<content type='text'>
appropriate. in regex, stop using the struct hack for a fixed size array
</content>
</entry>
</feed>
