723 Commits

Author SHA1 Message Date
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
leitner
a85bfc1b81 fmt_strn aborted one byte too late 2014-02-25 18:27:30 +00:00
leitner
fb5bd841a8 | not + 2014-02-25 17:51:29 +00:00
leitner
1d2add208f add json encoding routines to textcode 2014-01-28 16:12:39 +00:00
leitner
66cb1c1c82 fix dependencies 2013-10-12 13:50:08 +00:00
leitner
ff3a3410ec hopefully this fixes the looping gatling processes 2013-10-01 23:15:51 +00:00
leitner
45702476e7 add scan_netstring 2013-09-09 22:09:07 +00:00
leitner
69eb8c01e3 add scan_ulongn, scan_8longn, scan_xlongn and scan_longn 2013-09-09 20:57:58 +00:00
leitner
ee4a2c0cdb add man pages for buffer_from* 2013-09-09 19:19:52 +00:00
leitner
24d8e81116 add buffer_fromarray, buffer_frombuf 2013-09-09 19:03:52 +00:00
leitner
875c0dc491 add haveuint128.h
byte.h now defines UNALIGNED_ACCESS_OK on x86
2013-09-09 18:52:29 +00:00
leitner
9343743743 fix compile error 2013-09-09 18:51:24 +00:00
leitner
76e9ed7b3b add tryuing128.c and ignore haveuint128.h 2013-08-22 23:45:52 +00:00
leitner
1333904fea make first argument to mmap_unmap const 2013-08-22 23:42:46 +00:00
leitner
a451325318 add better comments
add fmt_copybytes
2013-08-22 23:41:37 +00:00
leitner
50b45b0f8d define UNALIGNED_ACCESS_OK on x86 2013-08-22 23:38:08 +00:00
leitner
bba5426d38 add haveuint128.h 2013-08-22 23:37:09 +00:00
leitner
f2ee8239d1 add more examples 2013-08-22 23:35:34 +00:00
leitner
37013d414b add compiletimeassert.h 2013-02-22 11:00:32 +00:00
leitner
dfb4915f0a add cast so the file compiles in c++ mode too 2012-09-27 01:46:12 +00:00
leitner
5ef52a7e44 catch more bad encoding 2012-09-12 20:20:42 +00:00
leitner
cdb07d6d95 minor update 2012-08-18 01:31:21 +00:00
leitner
f7606283c8 add byte_equal_notimingattack 2012-05-16 18:02:30 +00:00
leitner
852608b829 add awesome hack in isset.h (comex, Linus Torvalds) 2012-04-17 21:26:31 +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
6e6fc8b85d fix endless loop bug on freebsd 2012-03-19 02:38:52 +00:00
leitner
6185645a35 add trivial compare-and-swap test 2012-02-24 02:26:29 +00:00
leitner
662bd78aa4 fix return value 2012-02-24 02:26:11 +00:00
leitner
2a86a4e789 win32 cross compile fix for iarray 2012-02-24 02:01:27 +00:00
leitner
c2a2a15c12 document the return value expected from the callback given to iob_write
remove unused #include in iob_reset
if iob_addfile_close fails, it now closes the fd
if iob_addbuf_munmap fails, it now munmaps the buf
if iob_addbuf_free fails, it now frees the buf
some win32 cross-compile fixes for iarray
2012-02-24 02:00:52 +00:00
leitner
4f1e1d300c make headers work in C++
add two more variable length integer encoding functions
2012-02-07 17:02:40 +00:00
leitner
d17c2d1012 add functions to encode and decode integers in variable length binary
formats
2012-02-06 07:59:56 +00:00
leitner
ad6c2d9ce7 add functions to encode and decode variable length integers in binary 2012-02-06 07:55:48 +00:00
leitner
662cf55fc9 accept -3 as error return from the callback, too 2012-01-20 19:19:49 +00:00
leitner
c099365ec7 mingw compile fix 2012-01-13 03:20:32 +00:00
leitner
b0886bc324 the iob calls return int, not void 2012-01-13 02:25:31 +00:00
leitner
82e6b4086b socket_remote4 does not need havescope.h 2011-09-16 03:11:43 +00:00