leitner
595a01fb1b
fix copy/paste error
2014-09-03 11:15:21 +00:00
leitner
dc4d204f4e
also mention scan_ip6if(3)
2014-09-01 10:41:00 +00:00
leitner
967e3ce019
revert edge triggering epoll; it had reliability and fairness issues and
...
was also not actually faster
2014-08-28 19:03:57 +00:00
leitner
8b3eb0be7c
documented wrong return type
2014-08-24 15:19:33 +00:00
leitner
798c06a785
add more comments
2014-06-30 11:40:52 +00:00
leitner
25d9c5a6c7
add helpful #define HAVE_EAGAIN_READWRITE
2014-06-05 20:47:09 +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
d9cbb3940c
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
leitner
f3c0e69988
fix and document iarray
2014-06-05 16:31:06 +00:00
leitner
5baf943f0a
finish epoll move to edge triggering
2014-05-08 04:25:42 +00:00
leitner
0f6e586fc9
fix some bugs that cppcheck found
2014-05-07 23:51:24 +00:00
leitner
6d18d4ecc3
better comment
2014-04-23 13:44:52 +00:00
leitner
4ecc33dcea
catch not enough bytes in input buffer case
2014-04-23 13:40:23 +00:00
leitner
8106f8c5a6
remove superfluous &0x7f
2014-04-23 11:54:24 +00:00
leitner
8581b74a84
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
leitner
63b08692d0
check value to large error for asn1derlength
2014-04-19 15:35:30 +00:00
leitner
cf1406735c
much shorter way to do the same thing
2014-04-15 20:36:50 +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
f4414a2e80
remove io_starteventloop
2014-04-10 21:01:58 +00:00
leitner
b6af872d43
update Makefile
2014-04-10 20:53:49 +00:00
leitner
321b30565d
change return type to void
2014-04-10 20:50:53 +00:00
leitner
90acf965e7
add iarray_length
2014-04-08 10:01:27 +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
dd436c5bf8
map mmap_read return a const char*
2014-04-02 13:59:03 +00:00
leitner
c548cce5a1
another attempt at a thread-safe array
2014-03-29 11:17:04 +00:00
leitner
c608502cd8
add scan_ulongn, scan_8longn, scan_xlongn, scan_longn, scan_netstring
2014-03-15 22:24:14 +00:00
leitner
74d676fc62
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
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
cf3dc34288
actually increase stralloc.len
2014-03-15 13:27:37 +00:00
leitner
53e2af7389
never close fd 0, 1 or 2 in buffer_close
2014-03-15 13:17:58 +00:00
leitner
85d14a2703
ignore entities.h
2014-03-15 12:39:19 +00:00
leitner
9af06ac843
remove can't happen code and instead force a compile time error
2014-03-15 12:38:10 +00:00
leitner
baec005507
improved code path for typical platforms where there is a wider integer type
2014-03-14 21:32:29 +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
a9ca21ffc9
remove compiler warnings
2014-03-14 18:01:02 +00:00
leitner
324c8e0e8b
add rules regarding ent
2014-03-14 12:03:51 +00:00
leitner
d14d2536f0
get rid of -Wconversion warnings
2014-03-14 02:15:38 +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
9a1addce2f
remove compiler warnings
2014-03-14 00:24:25 +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
73db80daec
get rid of some compiler warnings
2014-02-25 18:39:59 +00:00
leitner
35382a430e
if called with srclen > maxlen, return maxlen not srclen
2014-02-25 18:36:36 +00:00
leitner
21d0ea4549
if srclen>maxlen, truncate at maxlen
2014-02-25 18:28:06 +00:00