691 Commits (cfa3f1ff5a41dba4916bb0933008018401913235)
 

Author SHA1 Message Date
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
Felix von Leitner f03d88a4c7 add some unit tests for the formatting routines 9 years ago
Felix von Leitner 4381f7c6a2 get rid of some compiler warnings 9 years ago
Felix von Leitner e1d937c67b if called with srclen > maxlen, return maxlen not srclen 9 years ago
Felix von Leitner 31ce8647fe if srclen>maxlen, truncate at maxlen 9 years ago
Felix von Leitner 29b9860a37 fmt_strn aborted one byte too late 9 years ago
Felix von Leitner 041e6c5a92 | not + 9 years ago
Felix von Leitner 0482a9ec04 add json encoding routines to textcode 9 years ago
Felix von Leitner 0abea6af07 fix dependencies 10 years ago
Felix von Leitner 212f499313 hopefully this fixes the looping gatling processes 10 years ago
Felix von Leitner 91b2116a38 add scan_netstring 10 years ago
Felix von Leitner 825f9ee219 add scan_ulongn, scan_8longn, scan_xlongn and scan_longn 10 years ago
Felix von Leitner a5dc55208a add man pages for buffer_from* 10 years ago
Felix von Leitner ba62b9d96f add buffer_fromarray, buffer_frombuf 10 years ago
Felix von Leitner addc8cd318 add haveuint128.h
byte.h now defines UNALIGNED_ACCESS_OK on x86
10 years ago
Felix von Leitner b12538cc97 fix compile error 10 years ago
Felix von Leitner fd46d3afc1 add tryuing128.c and ignore haveuint128.h 10 years ago
Felix von Leitner 395dd4c416 make first argument to mmap_unmap const 10 years ago
Felix von Leitner b2eb079c02 add better comments
add fmt_copybytes
10 years ago
Felix von Leitner ba201f6105 define UNALIGNED_ACCESS_OK on x86 10 years ago
Felix von Leitner 20448ccdd8 add haveuint128.h 10 years ago
Felix von Leitner 28180795a9 add more examples 10 years ago
Felix von Leitner 830241e86d add compiletimeassert.h 10 years ago
Felix von Leitner 74a13126d5 add cast so the file compiles in c++ mode too 11 years ago
Felix von Leitner babeb35b1f catch more bad encoding 11 years ago
Felix von Leitner fe4e8dab35 minor update 11 years ago
Felix von Leitner c5a5c2d6bf add byte_equal_notimingattack 11 years ago