118 Commits (8106f8c5a6e1e47ccbe64ef88521dc335f70ceec)

Author SHA1 Message Date
leitner 63b08692d0 check value to large error for asn1derlength 11 years ago
leitner 708c358a74 for asn1derlength: save a few bytes
for asn1dertag: catch too-large-value overflow
11 years ago
leitner 24d1ccb1b7 reject non-minimally encoded ASN.1 DER data
split scan_asn1derlength into scan_asn1derlength and scan_asn1derlengthvalue
11 years ago
leitner a544abc39c switch io_fds from array to newly implemented (hopefully thread-safe) iarray
switch epoll from level triggering to edge triggering
11 years ago
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
11 years ago
leitner 08ba483bfb catch other potential overflow 11 years ago
leitner 4a04c40595 get rid of more -Wconversion warnings 11 years ago
leitner f7fee036c1 SECURITY: check for integer overflow in stralloc_ready 11 years ago
leitner 539ef564ab add unit tests for uint* 11 years ago
leitner e1081e4b13 remove -Wconversion warnings 11 years ago
leitner 18afec7d68 scan_*longlong now properly abort if the number would not fit 11 years ago
leitner 01ffc04006 do proper early abort in the other scan_* routines if the numeric value
is too large
11 years ago
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
11 years ago
leitner dd4f86fbfa add some unit tests for the formatting routines 11 years ago
leitner 45702476e7 add scan_netstring 11 years ago
leitner e175800a8c add io_fd_canwrite (like io_fd but assume the fd is writable)
save a few syscalls here and there
13 years ago
leitner 6185645a35 add trivial compare-and-swap test 13 years ago
leitner 25f6b4640a remove warning 15 years ago
leitner bb9cdaaafb add iarray 16 years ago
leitner 25912d79cb one more test 16 years ago
leitner 6d4c89ea72 byte_zero is also miscompiled by gcc 4.3.2 16 years ago
leitner 97ac873038 gcc 4.3.1 generates bad code for byte_copy, so I'm switching to a
simpler version
17 years ago
leitner 6fd49579e8 forgot to add message in httperror 17 years ago
leitner a8a5e9a3d5 some valgrind de-noising
fix subtle typo in sub_of (David Sirovsky)
17 years ago
leitner 58a07defd7 add uint64 pack and unpack routines 17 years ago
leitner 72eba9bf79 catch one more case in umult64 (Tomi Jylhä-Ollila) 17 years ago
leitner b157ed2812 prepare for leak detection 17 years ago
leitner aa435fbee3 add fmt_strm 17 years ago
leitner 3c31c1a03b fmt_xlonglong was utterly broken (Johannes Vetter) 18 years ago
leitner 1b17f47def escape more in fmt_ldapescape 18 years ago
leitner b2be335043 win32 compat 18 years ago
leitner 4fec25060b small man page updates and add a cdbget test 18 years ago
leitner b0d5046428 fmt_ip6 compresses at best spot, not at first spot (Nikola Vladov) 18 years ago
leitner ff1805d310 remove unnecessary casts in test/uudecode 18 years ago
leitner d22de55cee add some int overflow check macros to rangecheck.h 18 years ago
leitner 6358d73f64 use a non-blocking socket (oops) 18 years ago
leitner f046d1cdc1 add iob_bytesleft
don't leak memory in test/httpd.c
18 years ago
leitner e443e06b28 #include <strlen.h> 18 years ago
leitner 3004b518ef switch to size_t and ssize_t 18 years ago
leitner 0e190f60ab make uudecode print offsets, too 19 years ago
leitner 5d6ab12b28 catch write error in uudecode 19 years ago
leitner f7e6432a2b convert test programs from socket_tcp[46] to socket_tcp[46]b 19 years ago
leitner 83c1186870 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)
19 years ago
leitner d361d81c64 make socket_(tc|ud)p[46] actually return non-blocking sockets as
documented (Richard Lyons)
19 years ago
leitner dbd9fe1ea5 add rangecheck.h 19 years ago
leitner c1c50c7dbd 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.
20 years ago
leitner 19202d2320 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
20 years ago
leitner 6196f771cd remove a few gcc 4 warnings
work around freebsd 5.4 brokenness (if you don't have IPv6 in the
    kernel, socket(PF_INET6,SOCK_STREAM,0) returns EPROTONOSUPPORT
    instead of EPFNOSUPPORT, which basically says "yeah, I know IPv6,
    but TCP?  never heard of it")
20 years ago
leitner 9eb09b5bfe add iob_free and man page for iob_reset.
check in some windoze compat crap (still does not compile through for
windoze)
20 years ago
leitner 34df761a0a add buffer_mmapread 20 years ago