<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libevent, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libevent?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libevent?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-06-28T13:32:41Z</updated>
<entry>
<title>When system calls indicate an error they return -1, not some arbitrary</title>
<updated>2019-06-28T13:32:41Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-06-28T13:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=df69c215c7c66baf660f3f65414fd34796c96152'/>
<id>urn:sha1:df69c215c7c66baf660f3f65414fd34796c96152</id>
<content type='text'>
value &lt; 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
</content>
</entry>
<entry>
<title>Fixed integer overflow with an excessively large amount of events.</title>
<updated>2019-05-08T17:33:22Z</updated>
<author>
<name>tobias</name>
<email>tobias@openbsd.org</email>
</author>
<published>2019-05-08T17:33:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=a3e9870f3ab7a683c9fa46f0c7e5dd4813cf9dc0'/>
<id>urn:sha1:a3e9870f3ab7a683c9fa46f0c7e5dd4813cf9dc0</id>
<content type='text'>
While at it: KNF and switch from reallocarray to recallocarray.

ok tedu
</content>
</entry>
<entry>
<title>Fixed endless loop/ OOB write on 64 bit systems with large buffers.</title>
<updated>2019-05-03T16:31:34Z</updated>
<author>
<name>tobias</name>
<email>tobias@openbsd.org</email>
</author>
<published>2019-05-03T16:31:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=dfe6885aac8e07aad460a3ee22c8affd9b255d72'/>
<id>urn:sha1:dfe6885aac8e07aad460a3ee22c8affd9b255d72</id>
<content type='text'>
If a buffer exceeds UINT_MAX (which is only possible on 64 bit systems)
an endless loop or OOB write can occur in buffer-specific readline
functions.

Switching variables in function scope to size_t solves these issue because
relevant fields in struct buffer are already size_t.

ok cheloha, deraadt, nicm, tedu
</content>
</entry>
<entry>
<title>Tweaks previous: gettime() can be void, use TIMESPEC_TO_TIMEVAL</title>
<updated>2019-05-01T19:14:25Z</updated>
<author>
<name>jca</name>
<email>jca@openbsd.org</email>
</author>
<published>2019-05-01T19:14:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0b56c05694bfe553350a72e84d496f1189e881a0'/>
<id>urn:sha1:0b56c05694bfe553350a72e84d496f1189e881a0</id>
<content type='text'>
ok nicm@ tobias@ cheloha@
</content>
</entry>
<entry>
<title>Require clock_gettime(CLOCK_MONOTONIC) and remove fallback code</title>
<updated>2019-05-01T19:12:47Z</updated>
<author>
<name>jca</name>
<email>jca@openbsd.org</email>
</author>
<published>2019-05-01T19:12:47Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3173634a73233a7227c5caa6d59e5f0f382217af'/>
<id>urn:sha1:3173634a73233a7227c5caa6d59e5f0f382217af</id>
<content type='text'>
If clock_gettime(CLOCK_MONOTONIC) fails here, something is really wrong.
Lots of userland already require it anyway.  Removing the fallback code
means less code, less global state and less fiddling with the timeheap
internals.

ok nicm@ tedu@ tobias@ cheloha@
</content>
</entry>
<entry>
<title>Switched min_heap to size_t to prevent integer overflows.</title>
<updated>2019-04-29T17:11:51Z</updated>
<author>
<name>tobias</name>
<email>tobias@openbsd.org</email>
</author>
<published>2019-04-29T17:11:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=756da5e0a6f57235bf162711a0bf4e55e0fca407'/>
<id>urn:sha1:756da5e0a6f57235bf162711a0bf4e55e0fca407</id>
<content type='text'>
Also, as deraadt suggested, switched realloc to recallocarray to at least
prevent uninitialized memory to be used as pointers in case of other
programming errors. A proper solution (not using an array) needs more work.

This change occured in sync with upstream libevent 2.2.

with input by and ok bluhm, jca, tedu
</content>
</entry>
<entry>
<title>knf, ok bluhm</title>
<updated>2019-04-20T23:22:28Z</updated>
<author>
<name>tedu</name>
<email>tedu@openbsd.org</email>
</author>
<published>2019-04-20T23:22:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=bff7a7ad4a003754a3d342079d4f1d9d58fe93b2'/>
<id>urn:sha1:bff7a7ad4a003754a3d342079d4f1d9d58fe93b2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>unfold some compound operations to make this easier to follow</title>
<updated>2019-04-18T23:44:21Z</updated>
<author>
<name>tedu</name>
<email>tedu@openbsd.org</email>
</author>
<published>2019-04-18T23:44:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=61c13f254db5ec63e0493d6de1195f73335e73c4'/>
<id>urn:sha1:61c13f254db5ec63e0493d6de1195f73335e73c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Document bufferevent_setwatermark(). Initial diff from Geoff Hill on tech@ with</title>
<updated>2018-09-23T08:56:19Z</updated>
<author>
<name>anton</name>
<email>anton@openbsd.org</email>
</author>
<published>2018-09-23T08:56:19Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c16f2e7513b01b4459e37ddf4513342aa90bd344'/>
<id>urn:sha1:c16f2e7513b01b4459e37ddf4513342aa90bd344</id>
<content type='text'>
some tweaks.

With feedback and ok jmc@
</content>
</entry>
<entry>
<title>Mention some missing libevent macros.</title>
<updated>2018-07-26T12:50:04Z</updated>
<author>
<name>rob</name>
<email>rob@openbsd.org</email>
</author>
<published>2018-07-26T12:50:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=9f28997702339f64dc3fb0ef286f7e97b0b8de65'/>
<id>urn:sha1:9f28997702339f64dc3fb0ef286f7e97b0b8de65</id>
<content type='text'>
ok jmc@, benno@, "yes" deraadt@
</content>
</entry>
</feed>
