Fix CVE-2014-6272 in Libevent 1.4 from upstream:
authorbluhm <bluhm@openbsd.org>
Mon, 5 Jan 2015 23:14:36 +0000 (23:14 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 5 Jan 2015 23:14:36 +0000 (23:14 +0000)
commit30030996ead37cfee5b2516b01bfef7da7de6975
tree4d1994c44e70426e30cce3b7a7e2b23c93aa145a
parent32fc6e3de2f1f448afc1cb8f4dafd2ff5542c232
Fix CVE-2014-6272 in Libevent 1.4 from upstream:
- 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
lib/libevent/buffer.c
lib/libevent/event.h