<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libevent/buffer.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libevent/buffer.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libevent/buffer.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-05-03T16:31:34Z</updated>
<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>Use recallocarray() to avoid leaving detritus in memory when resizing</title>
<updated>2017-03-18T01:48:43Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2017-03-18T01:48:43Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7f665dca4265d5266bd3d438459c2ba5c2c07b33'/>
<id>urn:sha1:7f665dca4265d5266bd3d438459c2ba5c2c07b33</id>
<content type='text'>
the string buffer.
ok jsing millert
</content>
</entry>
<entry>
<title>Remove NULL pointer checks before calls to free().</title>
<updated>2016-09-03T11:31:17Z</updated>
<author>
<name>nayden</name>
<email>nayden@openbsd.org</email>
</author>
<published>2016-09-03T11:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8698d772fa8e7a9c21b357c7c0f44e0b4c3e93ec'/>
<id>urn:sha1:8698d772fa8e7a9c21b357c7c0f44e0b4c3e93ec</id>
<content type='text'>
OK bluhm@ nicm@
</content>
</entry>
<entry>
<title>Include stdint.h, not limits.h to get SIZE_MAX.  OK guenther@</title>
<updated>2015-02-05T12:59:57Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2015-02-05T12:59:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=1357284a52eeaab13e37b2fa04ef8c1009e91b87'/>
<id>urn:sha1:1357284a52eeaab13e37b2fa04ef8c1009e91b87</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix CVE-2014-6272 in Libevent 1.4 from upstream:</title>
<updated>2015-01-05T23:14:36Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2015-01-05T23:14:36Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=30030996ead37cfee5b2516b01bfef7da7de6975'/>
<id>urn:sha1:30030996ead37cfee5b2516b01bfef7da7de6975</id>
<content type='text'>
- https://github.com/libevent/libevent/commit/7b21c4eabf1f3946d3f63cce1319c490caab8ecf
- For this fix, we need to make sure that passing too-large inputs to
  the evbuffer functions can't make us do bad things with the heap.
On top of that do:
- Update libevent version to 1.4.15-stable.
- Use SIZE_MAX from limits.h instead of a private define.
- Do not declare 'size_t need' twice to avoid a compiler warning.
OK sthen
</content>
</entry>
<entry>
<title>libraries shouldnt print to stderr when things dont go their way.</title>
<updated>2014-11-21T07:44:25Z</updated>
<author>
<name>dlg</name>
<email>dlg@openbsd.org</email>
</author>
<published>2014-11-21T07:44:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2af84a8cb19ebc3b37d08483a4563db54f293381'/>
<id>urn:sha1:2af84a8cb19ebc3b37d08483a4563db54f293381</id>
<content type='text'>
switch fprintf(stderr) over to event_warn() on malloc failure. fix
up an errant newline in an existing event_warn while there.

originally i just wanted to delete the fprintf
diff from nicm@ who is away from a keyboard right now so cant commit
guenther@ agrees with the idea
</content>
</entry>
<entry>
<title>Fix whitespace errors in libevent.</title>
<updated>2014-10-30T16:45:37Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2014-10-30T16:45:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=824b820d4681cb871673244f671f855c64a3db5f'/>
<id>urn:sha1:824b820d4681cb871673244f671f855c64a3db5f</id>
<content type='text'>
OK nicm@
</content>
</entry>
<entry>
<title>After removing all the #ifdef, the wrappers in evutil are rather</title>
<updated>2014-10-29T22:47:29Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2014-10-29T22:47:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=84ea67e3e3c0f239bd94fd21b75b8140c2dd446b'/>
<id>urn:sha1:84ea67e3e3c0f239bd94fd21b75b8140c2dd446b</id>
<content type='text'>
useless.  Let libevent call the libc functions directly.
OK nicm@
</content>
</entry>
<entry>
<title>Remove some #ifdef from libevent.</title>
<updated>2014-10-18T21:56:44Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2014-10-18T21:56:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=37fbd8dfb5cf1486c8318998b0f7facda94557da'/>
<id>urn:sha1:37fbd8dfb5cf1486c8318998b0f7facda94557da</id>
<content type='text'>
OK nicm@
</content>
</entry>
<entry>
<title>Remove the remaining #ifdef HAVE_ and the #define _GNU_SOURCE.</title>
<updated>2014-10-18T16:48:28Z</updated>
<author>
<name>bluhm</name>
<email>bluhm@openbsd.org</email>
</author>
<published>2014-10-18T16:48:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=44e30b10372d07959035c45ba62dee4130f51c99'/>
<id>urn:sha1:44e30b10372d07959035c45ba62dee4130f51c99</id>
<content type='text'>
OK nicm@
</content>
</entry>
</feed>
