leitner
a1f1986247
include <foo> -> include "foo"
2016-03-17 11:13:23 +00:00
leitner
7f829a36bc
add base64url support
2016-02-28 12:24:47 +00:00
leitner
32a312b8f1
add marshaling code for protocol buffers
2015-09-29 19:01:25 +00:00
leitner
6859c4b6ca
add netstring formatter
...
fix scan_netstring to actually correctly return the length of the transported string
add documentation
2015-09-29 15:29:57 +00:00
leitner
6cfc16fc40
add gcc 5 integer overflow intrinsics support to rangecheck.h
...
in the process, identify a gnarly problem that was not only not found by
the test suite, there was a test testing for the wrong behavior!
2015-09-29 14:10:03 +00:00
leitner
e5865bcc52
fix timezone handling
2015-05-13 21:42:58 +00:00
leitner
ac6979e4af
add scan_iso8601+test
2015-05-13 21:21:16 +00:00
leitner
ad5ce55281
add fmt_iso8601
2015-05-13 20:33:51 +00:00
leitner
38ea25fd9f
more updates
2014-12-27 13:39:20 +00:00
leitner
953eb639b2
on Linux, save a few syscalls by using sendto/sendmsg with MSG_MORE
...
instead of write/writev + setsockopt TCP_CORK
2014-10-07 13:43:50 +00:00
leitner
39e7ee90bb
introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz)
2014-06-05 20:43:01 +00:00
leitner
0f6e586fc9
fix some bugs that cppcheck found
2014-05-07 23:51:24 +00:00
leitner
4ecc33dcea
catch not enough bytes in input buffer case
2014-04-23 13:40:23 +00:00
leitner
63b08692d0
check value to large error for asn1derlength
2014-04-19 15:35:30 +00:00
leitner
708c358a74
for asn1derlength: save a few bytes
...
for asn1dertag: catch too-large-value overflow
2014-04-15 20:12:50 +00:00
leitner
24d1ccb1b7
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
leitner
a544abc39c
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
leitner
9b6671efee
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
leitner
08ba483bfb
catch other potential overflow
2014-03-14 20:35:47 +00:00
leitner
4a04c40595
get rid of more -Wconversion warnings
2014-03-14 19:42:54 +00:00
leitner
f7fee036c1
SECURITY: check for integer overflow in stralloc_ready
2014-03-14 18:56:07 +00:00
leitner
539ef564ab
add unit tests for uint*
2014-03-14 18:01:32 +00:00
leitner
e1081e4b13
remove -Wconversion warnings
2014-03-14 01:53:08 +00:00
leitner
18afec7d68
scan_*longlong now properly abort if the number would not fit
2014-03-14 01:33:03 +00:00
leitner
01ffc04006
do proper early abort in the other scan_* routines if the numeric value
...
is too large
2014-03-14 00:24:02 +00:00
leitner
35942878c2
$ 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
leitner
dd4f86fbfa
add some unit tests for the formatting routines
2014-02-25 18:59:20 +00:00
leitner
45702476e7
add scan_netstring
2013-09-09 22:09:07 +00:00
leitner
e175800a8c
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
leitner
6185645a35
add trivial compare-and-swap test
2012-02-24 02:26:29 +00:00
leitner
25f6b4640a
remove warning
2009-10-27 23:20:21 +00:00
leitner
bb9cdaaafb
add iarray
2009-03-12 21:32:43 +00:00
leitner
25912d79cb
one more test
2008-12-26 01:47:24 +00:00
leitner
6d4c89ea72
byte_zero is also miscompiled by gcc 4.3.2
2008-10-25 21:21:46 +00:00
leitner
97ac873038
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
leitner
6fd49579e8
forgot to add message in httperror
2008-06-23 07:04:09 +00:00
leitner
a8a5e9a3d5
some valgrind de-noising
...
fix subtle typo in sub_of (David Sirovsky)
2008-02-27 12:10:05 +00:00
leitner
58a07defd7
add uint64 pack and unpack routines
2008-01-13 21:40:24 +00:00
leitner
72eba9bf79
catch one more case in umult64 (Tomi Jylhä-Ollila)
2007-12-15 19:45:48 +00:00
leitner
b157ed2812
prepare for leak detection
2007-10-17 13:31:27 +00:00
leitner
aa435fbee3
add fmt_strm
2007-10-09 13:49:26 +00:00
leitner
3c31c1a03b
fmt_xlonglong was utterly broken (Johannes Vetter)
2007-08-01 00:10:37 +00:00
leitner
1b17f47def
escape more in fmt_ldapescape
2007-06-28 20:01:05 +00:00
leitner
b2be335043
win32 compat
2007-05-02 06:26:43 +00:00
leitner
4fec25060b
small man page updates and add a cdbget test
2007-04-30 05:08:28 +00:00
leitner
b0d5046428
fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov)
2007-03-04 13:13:19 +00:00
leitner
ff1805d310
remove unnecessary casts in test/uudecode
2007-02-25 17:13:30 +00:00
leitner
d22de55cee
add some int overflow check macros to rangecheck.h
2007-01-26 01:12:15 +00:00
leitner
6358d73f64
use a non-blocking socket (oops)
2006-12-19 13:21:09 +00:00
leitner
f046d1cdc1
add iob_bytesleft
...
don't leak memory in test/httpd.c
2006-12-19 13:19:32 +00:00