Commit Graph

121 Commits (aedf1016c1864856b6a98054cb99e93e656c61f9)

Author SHA1 Message Date
Felix von Leitner d8da202a8b introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz) 2014-06-05 20:43:01 +00:00
Felix von Leitner 9ed80b2d0e fix some bugs that cppcheck found 2014-05-07 23:51:24 +00:00
Felix von Leitner ad7268e0d7 catch not enough bytes in input buffer case 2014-04-23 13:40:23 +00:00
Felix von Leitner d308e8274a check value to large error for asn1derlength 2014-04-19 15:35:30 +00:00
Felix von Leitner 6a4ceca9c0 for asn1derlength: save a few bytes
for asn1dertag: catch too-large-value overflow
2014-04-15 20:12:50 +00:00
Felix von Leitner c90a757f45 reject non-minimally encoded ASN.1 DER data
split scan_asn1derlength into scan_asn1derlength and scan_asn1derlengthvalue
2014-04-15 18:52:21 +00:00
Felix von Leitner 68f5b64189 switch io_fds from array to newly implemented (hopefully thread-safe) iarray
switch epoll from level triggering to edge triggering
2014-04-04 18:11:03 +00:00
Felix von Leitner 69e6c3c6c6 add buffer_tosa check to marshal.c
failed attempt to improve scan_ulongn, results in essentially same code
but the C code looks slighly better so I'm keeping it
2014-03-15 15:18:55 +00:00
Felix von Leitner 1d50536829 catch other potential overflow 2014-03-14 20:35:47 +00:00
Felix von Leitner d74fc233fc get rid of more -Wconversion warnings 2014-03-14 19:42:54 +00:00
Felix von Leitner 765d88a76d SECURITY: check for integer overflow in stralloc_ready 2014-03-14 18:56:07 +00:00
Felix von Leitner 461aa90923 add unit tests for uint* 2014-03-14 18:01:32 +00:00
Felix von Leitner ddec9f403a remove -Wconversion warnings 2014-03-14 01:53:08 +00:00
Felix von Leitner 823f052cbd scan_*longlong now properly abort if the number would not fit 2014-03-14 01:33:03 +00:00
Felix von Leitner 826abd7560 do proper early abort in the other scan_* routines if the numeric value
is too large
2014-03-14 00:24:02 +00:00
Felix von Leitner 6a1c199a99 $ make WERROR=-Werror now builds with -Werror
add some single char escaping routines to fmt.h
pull in html5 entities from w3c and use those to do a proper scan_html decoding
fix an off-by-one in fmt_to_array
add a ton of unit tests for the fmt routines
2014-03-13 22:25:20 +00:00
Felix von Leitner f03d88a4c7 add some unit tests for the formatting routines 2014-02-25 18:59:20 +00:00
Felix von Leitner 91b2116a38 add scan_netstring 2013-09-09 22:09:07 +00:00
Felix von Leitner 3743706899 add io_fd_canwrite (like io_fd but assume the fd is writable)
save a few syscalls here and there
2012-04-10 21:15:51 +00:00
Felix von Leitner d3b996c7ce add trivial compare-and-swap test 2012-02-24 02:26:29 +00:00
Felix von Leitner 6305370c69 remove warning 2009-10-27 23:20:21 +00:00
Felix von Leitner 233649d680 add iarray 2009-03-12 21:32:43 +00:00
Felix von Leitner bb518ee596 one more test 2008-12-26 01:47:24 +00:00
Felix von Leitner 6dda2ae244 byte_zero is also miscompiled by gcc 4.3.2 2008-10-25 21:21:46 +00:00
Felix von Leitner e4010479e5 gcc 4.3.1 generates bad code for byte_copy, so I'm switching to a
simpler version
2008-08-25 22:15:29 +00:00
Felix von Leitner 090f9ae243 forgot to add message in httperror 2008-06-23 07:04:09 +00:00
Felix von Leitner 6d98b442ab some valgrind de-noising
fix subtle typo in sub_of (David Sirovsky)
2008-02-27 12:10:05 +00:00
Felix von Leitner b8a94d5b7b add uint64 pack and unpack routines 2008-01-13 21:40:24 +00:00
Felix von Leitner 5e8d303443 catch one more case in umult64 (Tomi Jylhä-Ollila) 2007-12-15 19:45:48 +00:00
Felix von Leitner 4fc3ca3f32 prepare for leak detection 2007-10-17 13:31:27 +00:00
Felix von Leitner 1c8ffa9021 add fmt_strm 2007-10-09 13:49:26 +00:00
Felix von Leitner dc6ea1902b fmt_xlonglong was utterly broken (Johannes Vetter) 2007-08-01 00:10:37 +00:00
Felix von Leitner 0f90f8eb71 escape more in fmt_ldapescape 2007-06-28 20:01:05 +00:00
Felix von Leitner 77ec2baa8f win32 compat 2007-05-02 06:26:43 +00:00
Felix von Leitner 5619ba06f2 small man page updates and add a cdbget test 2007-04-30 05:08:28 +00:00
Felix von Leitner 7109a42c30 fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov) 2007-03-04 13:13:19 +00:00
Felix von Leitner 65b6a4874b remove unnecessary casts in test/uudecode 2007-02-25 17:13:30 +00:00
Felix von Leitner b5c41baade add some int overflow check macros to rangecheck.h 2007-01-26 01:12:15 +00:00
Felix von Leitner 440b59d891 use a non-blocking socket (oops) 2006-12-19 13:21:09 +00:00
Felix von Leitner 51609b5628 add iob_bytesleft
don't leak memory in test/httpd.c
2006-12-19 13:19:32 +00:00
Felix von Leitner 876b883646 #include <strlen.h> 2006-12-06 16:51:06 +00:00
Felix von Leitner 0698149baf switch to size_t and ssize_t 2006-11-07 17:56:05 +00:00
Felix von Leitner 1f828b0f53 make uudecode print offsets, too 2006-09-27 14:16:29 +00:00
Felix von Leitner 75773cbb03 catch write error in uudecode 2006-08-15 18:15:14 +00:00
Felix von Leitner b7864a6ce5 convert test programs from socket_tcp[46] to socket_tcp[46]b 2006-07-15 23:17:46 +00:00
Felix von Leitner 56fb0a586d fix for NetBSD 3.0 (they broke their sys/types.h)
remove support for ip6.int reverse lookup in DNS routines (the domain is
no longer delegated)
2006-06-23 03:53:16 +00:00
Felix von Leitner 071df9ee4a make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
2006-05-18 06:02:43 +00:00
Felix von Leitner dcbc90e2c6 add rangecheck.h 2006-04-17 04:33:40 +00:00
Felix von Leitner 2e87886163 further Windoze support (test/io5.c works, gatling still doesn't)
This is just to get gatling to work, I may remove it again after
    that.
2005-09-09 22:12:23 +00:00
Felix von Leitner 237ff729b3 turns out the imult routines (which I never used) were incorrect.
Noted by Matthew Dempsky
  open_* from open.h now open in large file mode
2005-07-15 20:57:07 +00:00