Commit Graph

717 Commits

Author SHA1 Message Date
Felix von Leitner aedf1016c1 revert to level triggering for epoll (forgot io_wantread) 2014-09-09 13:48:04 +00:00
Felix von Leitner d79bd625f1 also install compiletimeassert.h 2014-09-03 11:51:44 +00:00
Felix von Leitner 51b2c32c72 fix copy/paste error 2014-09-03 11:15:21 +00:00
Felix von Leitner c7654a4040 also mention scan_ip6if(3) 2014-09-01 10:41:00 +00:00
Felix von Leitner 1de8f45d8a revert edge triggering epoll; it had reliability and fairness issues and
was also not actually faster
2014-08-28 19:03:57 +00:00
Felix von Leitner d86346ba72 documented wrong return type 2014-08-24 15:19:33 +00:00
Felix von Leitner 18d9655ca4 add more comments 2014-06-30 11:40:52 +00:00
Felix von Leitner 7f5a729a1a add helpful #define HAVE_EAGAIN_READWRITE 2014-06-05 20:47:09 +00:00
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 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
2014-06-05 19:17:24 +00:00
Felix von Leitner 7102b7cb7e fix and document iarray 2014-06-05 16:31:06 +00:00
Felix von Leitner 44bcab1661 finish epoll move to edge triggering 2014-05-08 04:25:42 +00:00
Felix von Leitner 9ed80b2d0e fix some bugs that cppcheck found 2014-05-07 23:51:24 +00:00
Felix von Leitner e796d5bdbc better comment 2014-04-23 13:44:52 +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 482fb6cba4 remove superfluous &0x7f 2014-04-23 11:54:24 +00:00
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.
2014-04-19 17:45:14 +00:00
Felix von Leitner d308e8274a check value to large error for asn1derlength 2014-04-19 15:35:30 +00:00
Felix von Leitner 2837d39ba6 much shorter way to do the same thing 2014-04-15 20:36:50 +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 f6eaee11dd remove io_starteventloop 2014-04-10 21:01:58 +00:00
Felix von Leitner b3a8ef4367 update Makefile 2014-04-10 20:53:49 +00:00
Felix von Leitner 88b4a6cebd change return type to void 2014-04-10 20:50:53 +00:00
Felix von Leitner 1f19a881d6 add iarray_length 2014-04-08 10:01:27 +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 cfa3f1ff5a map mmap_read return a const char* 2014-04-02 13:59:03 +00:00
Felix von Leitner bd638a862d another attempt at a thread-safe array 2014-03-29 11:17:04 +00:00
Felix von Leitner ba77fcc8ba add scan_ulongn, scan_8longn, scan_xlongn, scan_longn, scan_netstring 2014-03-15 22:24:14 +00:00
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
2014-03-15 16:04:55 +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 21843fedd0 actually increase stralloc.len 2014-03-15 13:27:37 +00:00
Felix von Leitner e058337c40 never close fd 0, 1 or 2 in buffer_close 2014-03-15 13:17:58 +00:00
Felix von Leitner 0fdbaaa085 ignore entities.h 2014-03-15 12:39:19 +00:00
Felix von Leitner 20d899eb7e remove can't happen code and instead force a compile time error 2014-03-15 12:38:10 +00:00
Felix von Leitner f68ede8333 improved code path for typical platforms where there is a wider integer type 2014-03-14 21:32:29 +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 603801caf1 remove compiler warnings 2014-03-14 18:01:02 +00:00
Felix von Leitner 26b5f1f5bd add rules regarding ent 2014-03-14 12:03:51 +00:00
Felix von Leitner 6e36286b34 get rid of -Wconversion warnings 2014-03-14 02:15:38 +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 21ca7d8264 remove compiler warnings 2014-03-14 00:25:33 +00:00
Felix von Leitner de26fa9ec3 remove compiler warnings 2014-03-14 00:25:09 +00:00
Felix von Leitner b571a40e68 remove compiler warnings 2014-03-14 00:24:25 +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