717 Commits (aedf1016c1864856b6a98054cb99e93e656c61f9)
 

Author SHA1 Message Date
Felix von Leitner aedf1016c1 revert to level triggering for epoll (forgot io_wantread) 9 years ago
Felix von Leitner d79bd625f1 also install compiletimeassert.h 9 years ago
Felix von Leitner 51b2c32c72 fix copy/paste error 9 years ago
Felix von Leitner c7654a4040 also mention scan_ip6if(3) 9 years ago
Felix von Leitner 1de8f45d8a revert edge triggering epoll; it had reliability and fairness issues and
was also not actually faster
9 years ago
Felix von Leitner d86346ba72 documented wrong return type 9 years ago
Felix von Leitner 18d9655ca4 add more comments 9 years ago
Felix von Leitner 7f5a729a1a add helpful #define HAVE_EAGAIN_READWRITE 9 years ago
Felix von Leitner d8da202a8b introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz) 9 years ago
Felix von Leitner 03df1685ba it turns out you don't need -1/EGAIN to know edge triggering told you
there is no more data, it's enough to read/write less than you asked for
9 years ago
Felix von Leitner 7102b7cb7e fix and document iarray 9 years ago
Felix von Leitner 44bcab1661 finish epoll move to edge triggering 9 years ago
Felix von Leitner 9ed80b2d0e fix some bugs that cppcheck found 9 years ago
Felix von Leitner e796d5bdbc better comment 9 years ago
Felix von Leitner ad7268e0d7 catch not enough bytes in input buffer case 9 years ago
Felix von Leitner 482fb6cba4 remove superfluous &0x7f 9 years ago
Felix von Leitner cecb514e25 on FreeBSD, on a PF_INET6 socket, recvfrom and friends can actually
return a sockaddr with family PF_INET.  WTF?  Work around that.
9 years ago
Felix von Leitner d308e8274a check value to large error for asn1derlength 9 years ago
Felix von Leitner 2837d39ba6 much shorter way to do the same thing 9 years ago
Felix von Leitner 6a4ceca9c0 for asn1derlength: save a few bytes
for asn1dertag: catch too-large-value overflow
9 years ago
Felix von Leitner c90a757f45 reject non-minimally encoded ASN.1 DER data
split scan_asn1derlength into scan_asn1derlength and scan_asn1derlengthvalue
9 years ago
Felix von Leitner f6eaee11dd remove io_starteventloop 9 years ago
Felix von Leitner b3a8ef4367 update Makefile 9 years ago
Felix von Leitner 88b4a6cebd change return type to void 9 years ago
Felix von Leitner 1f19a881d6 add iarray_length 9 years ago
Felix von Leitner 68f5b64189 switch io_fds from array to newly implemented (hopefully thread-safe) iarray
switch epoll from level triggering to edge triggering
9 years ago
Felix von Leitner cfa3f1ff5a map mmap_read return a const char* 9 years ago
Felix von Leitner bd638a862d another attempt at a thread-safe array 9 years ago
Felix von Leitner ba77fcc8ba add scan_ulongn, scan_8longn, scan_xlongn, scan_longn, scan_netstring 9 years ago
Felix von Leitner 4ab5705eec fix typo in man page
make use of __uint128_t in scan_ulongn and provide long long based
implementation for 32-bit platforms
9 years ago
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
9 years ago
Felix von Leitner 21843fedd0 actually increase stralloc.len 9 years ago
Felix von Leitner e058337c40 never close fd 0, 1 or 2 in buffer_close 9 years ago
Felix von Leitner 0fdbaaa085 ignore entities.h 9 years ago
Felix von Leitner 20d899eb7e remove can't happen code and instead force a compile time error 9 years ago
Felix von Leitner f68ede8333 improved code path for typical platforms where there is a wider integer type 9 years ago
Felix von Leitner 1d50536829 catch other potential overflow 9 years ago
Felix von Leitner d74fc233fc get rid of more -Wconversion warnings 9 years ago
Felix von Leitner 765d88a76d SECURITY: check for integer overflow in stralloc_ready 9 years ago
Felix von Leitner 461aa90923 add unit tests for uint* 9 years ago
Felix von Leitner 603801caf1 remove compiler warnings 9 years ago
Felix von Leitner 26b5f1f5bd add rules regarding ent 9 years ago
Felix von Leitner 6e36286b34 get rid of -Wconversion warnings 9 years ago
Felix von Leitner ddec9f403a remove -Wconversion warnings 9 years ago
Felix von Leitner 823f052cbd scan_*longlong now properly abort if the number would not fit 9 years ago
Felix von Leitner 21ca7d8264 remove compiler warnings 9 years ago
Felix von Leitner de26fa9ec3 remove compiler warnings 9 years ago
Felix von Leitner b571a40e68 remove compiler warnings 9 years ago
Felix von Leitner 826abd7560 do proper early abort in the other scan_* routines if the numeric value
is too large
9 years ago
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
9 years ago