solanum-vs-hackint-and-char.../libratbox/src
Jilles Tjoelker fab79c5d25 libratbox: Fix undefined behaviour advancing pointer beyond end of array.
The C standard does not allow constructing pointers beyond one past the end
of an array. Therefore, if size is an unsigned type (size_t), then
buf + size is never less than buf.

Clang on 32-bit took advantage of the undefined behaviour, causing
segfaults.

Lightly tested.
2014-02-16 16:06:01 +01:00
..
arc4random.c Revert "Remove more gnutls references." 2013-06-10 12:18:43 -04:00
balloc.c Fix --disable-balloc. 2010-03-05 17:28:47 +01:00
commio.c libratbox: Allow defer_accept on FreeBSD. 2012-03-20 00:33:31 +01:00
crypt.c libratbox/crypt: fix difference from glibc in sha256_crypt() 2013-10-23 15:47:28 +03:00
descrip.mms libratbox sync - r25796 2008-07-30 02:41:27 +04:00
devpoll.c Update libratbox. 2008-12-22 12:49:01 +03:00
epoll.c Disable timerfd/signalfd on openvz, it seems broken 2012-05-18 21:16:13 -05:00
event.c Update libratbox. 2008-12-22 12:49:01 +03:00
export-syms.txt Add new function rb_get_ssl_certfp() to export-syms.txt. 2010-02-07 20:38:37 +01:00
gnutls.c libratbox/gnutls: add gnutls v3 api compatibility without breaking v2 2014-02-08 18:34:49 +00:00
helper.c Copied libratbox and related stuff from shadowircd upstream. 2008-12-03 02:49:39 +03:00
kqueue.c Copied libratbox and related stuff from shadowircd upstream. 2008-12-03 02:49:39 +03:00
linebuf.c Fix --disable-balloc. 2010-03-05 17:28:47 +01:00
Makefile.am Revert "libratbox: Remove broken gnutls support." 2013-06-10 12:19:02 -04:00
Makefile.in libratbox: regenerate autotools files 2014-02-08 18:35:24 +00:00
nossl.c Revert "libratbox: Remove broken gnutls support." 2013-06-10 12:19:02 -04:00
openssl.c openssl: Improve security using options recommanded by Argure. 2014-01-15 22:25:26 +01:00
patricia.c libratbox: Clean up uses of strcpy(). 2010-11-23 08:52:18 -06:00
poll.c Copied libratbox and related stuff from shadowircd upstream. 2008-12-03 02:49:39 +03:00
ports.c Update libratbox. 2008-12-22 12:49:01 +03:00
ratbox_lib.c libratbox: Clean up uses of strcpy(). 2010-11-23 08:52:18 -06:00
rawbuf.c Copied libratbox and related stuff from shadowircd upstream. 2008-12-03 02:49:39 +03:00
rb_memory.c Copied libratbox and related stuff from shadowircd upstream. 2008-12-03 02:49:39 +03:00
select.c Copied libratbox and related stuff from shadowircd upstream. 2008-12-03 02:49:39 +03:00
sigio.c sigio: use siginfo_t instead of struct siginfo, per glibc commit r4efeffc1d5 2012-07-25 10:34:50 -05:00
snprintf.c libratbox: Fix undefined behaviour advancing pointer beyond end of array. 2014-02-16 16:06:01 +01:00
tools.c Copied libratbox and related stuff from shadowircd upstream. 2008-12-03 02:49:39 +03:00
unix.c Fix memory leak and bad error reporting with posix_spawn(): 2010-01-22 00:09:56 +01:00
version.c.SH Forgot version.c.SH for libratbox/. 2008-12-03 02:54:08 +03:00
win32.c Update libratbox. 2008-12-22 12:49:01 +03:00