Commit Graph

  • ad7268e0d7 catch not enough bytes in input buffer case Felix von Leitner 2014-04-23 13:40:23 +0000
  • 482fb6cba4 remove superfluous &0x7f Felix von Leitner 2014-04-23 11:54:24 +0000
  • cecb514e25 on FreeBSD, on a PF_INET6 socket, recvfrom and friends can actually return a sockaddr with family PF_INET. WTF? Work around that. Felix von Leitner 2014-04-19 17:45:14 +0000
  • d308e8274a check value to large error for asn1derlength Felix von Leitner 2014-04-19 15:35:30 +0000
  • 2837d39ba6 much shorter way to do the same thing Felix von Leitner 2014-04-15 20:36:50 +0000
  • 6a4ceca9c0 for asn1derlength: save a few bytes for asn1dertag: catch too-large-value overflow Felix von Leitner 2014-04-15 20:12:50 +0000
  • c90a757f45 reject non-minimally encoded ASN.1 DER data split scan_asn1derlength into scan_asn1derlength and scan_asn1derlengthvalue Felix von Leitner 2014-04-15 18:52:21 +0000
  • f6eaee11dd remove io_starteventloop Felix von Leitner 2014-04-10 21:01:58 +0000
  • b3a8ef4367 update Makefile Felix von Leitner 2014-04-10 20:53:49 +0000
  • 88b4a6cebd change return type to void Felix von Leitner 2014-04-10 20:50:53 +0000
  • 1f19a881d6 add iarray_length Felix von Leitner 2014-04-08 10:01:27 +0000
  • 68f5b64189 switch io_fds from array to newly implemented (hopefully thread-safe) iarray switch epoll from level triggering to edge triggering Felix von Leitner 2014-04-04 18:11:03 +0000
  • cfa3f1ff5a map mmap_read return a const char* Felix von Leitner 2014-04-02 13:59:03 +0000
  • bd638a862d another attempt at a thread-safe array Felix von Leitner 2014-03-29 11:17:04 +0000
  • ba77fcc8ba add scan_ulongn, scan_8longn, scan_xlongn, scan_longn, scan_netstring Felix von Leitner 2014-03-15 22:24:14 +0000
  • 4ab5705eec fix typo in man page make use of __uint128_t in scan_ulongn and provide long long based implementation for 32-bit platforms Felix von Leitner 2014-03-15 16:04:55 +0000
  • 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 Felix von Leitner 2014-03-15 15:18:55 +0000
  • 21843fedd0 actually increase stralloc.len Felix von Leitner 2014-03-15 13:27:37 +0000
  • e058337c40 never close fd 0, 1 or 2 in buffer_close Felix von Leitner 2014-03-15 13:17:58 +0000
  • 0fdbaaa085 ignore entities.h Felix von Leitner 2014-03-15 12:39:19 +0000
  • 20d899eb7e remove can't happen code and instead force a compile time error Felix von Leitner 2014-03-15 12:38:10 +0000
  • f68ede8333 improved code path for typical platforms where there is a wider integer type Felix von Leitner 2014-03-14 21:32:29 +0000
  • 1d50536829 catch other potential overflow Felix von Leitner 2014-03-14 20:35:47 +0000
  • d74fc233fc get rid of more -Wconversion warnings Felix von Leitner 2014-03-14 19:42:54 +0000
  • 765d88a76d SECURITY: check for integer overflow in stralloc_ready Felix von Leitner 2014-03-14 18:56:07 +0000
  • 461aa90923 add unit tests for uint* Felix von Leitner 2014-03-14 18:01:32 +0000
  • 603801caf1 remove compiler warnings Felix von Leitner 2014-03-14 18:01:02 +0000
  • 26b5f1f5bd add rules regarding ent Felix von Leitner 2014-03-14 12:03:51 +0000
  • 6e36286b34 get rid of -Wconversion warnings Felix von Leitner 2014-03-14 02:15:38 +0000
  • ddec9f403a remove -Wconversion warnings Felix von Leitner 2014-03-14 01:53:08 +0000
  • 823f052cbd scan_*longlong now properly abort if the number would not fit Felix von Leitner 2014-03-14 01:33:03 +0000
  • 21ca7d8264 remove compiler warnings Felix von Leitner 2014-03-14 00:25:33 +0000
  • de26fa9ec3 remove compiler warnings Felix von Leitner 2014-03-14 00:25:09 +0000
  • b571a40e68 remove compiler warnings Felix von Leitner 2014-03-14 00:24:25 +0000
  • 826abd7560 do proper early abort in the other scan_* routines if the numeric value is too large Felix von Leitner 2014-03-14 00:24:02 +0000
  • 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 Felix von Leitner 2014-03-13 22:25:20 +0000
  • f03d88a4c7 add some unit tests for the formatting routines Felix von Leitner 2014-02-25 18:59:20 +0000
  • 4381f7c6a2 get rid of some compiler warnings Felix von Leitner 2014-02-25 18:39:59 +0000
  • e1d937c67b if called with srclen > maxlen, return maxlen not srclen Felix von Leitner 2014-02-25 18:36:36 +0000
  • 31ce8647fe if srclen>maxlen, truncate at maxlen Felix von Leitner 2014-02-25 18:28:06 +0000
  • 29b9860a37 fmt_strn aborted one byte too late Felix von Leitner 2014-02-25 18:27:30 +0000
  • 041e6c5a92 | not + Felix von Leitner 2014-02-25 17:51:29 +0000
  • 0482a9ec04 add json encoding routines to textcode Felix von Leitner 2014-01-28 16:12:39 +0000
  • 0abea6af07 fix dependencies Felix von Leitner 2013-10-12 13:50:08 +0000
  • 212f499313 hopefully this fixes the looping gatling processes Felix von Leitner 2013-10-01 23:15:51 +0000
  • 91b2116a38 add scan_netstring Felix von Leitner 2013-09-09 22:09:07 +0000
  • 825f9ee219 add scan_ulongn, scan_8longn, scan_xlongn and scan_longn Felix von Leitner 2013-09-09 20:57:58 +0000
  • a5dc55208a add man pages for buffer_from* Felix von Leitner 2013-09-09 19:19:52 +0000
  • ba62b9d96f add buffer_fromarray, buffer_frombuf Felix von Leitner 2013-09-09 19:03:52 +0000
  • addc8cd318 add haveuint128.h byte.h now defines UNALIGNED_ACCESS_OK on x86 Felix von Leitner 2013-09-09 18:52:29 +0000
  • b12538cc97 fix compile error Felix von Leitner 2013-09-09 18:51:24 +0000
  • fd46d3afc1 add tryuing128.c and ignore haveuint128.h Felix von Leitner 2013-08-22 23:45:52 +0000
  • 395dd4c416 make first argument to mmap_unmap const Felix von Leitner 2013-08-22 23:42:46 +0000
  • b2eb079c02 add better comments add fmt_copybytes Felix von Leitner 2013-08-22 23:41:37 +0000
  • ba201f6105 define UNALIGNED_ACCESS_OK on x86 Felix von Leitner 2013-08-22 23:38:08 +0000
  • 20448ccdd8 add haveuint128.h Felix von Leitner 2013-08-22 23:37:09 +0000
  • 28180795a9 add more examples Felix von Leitner 2013-08-22 23:35:34 +0000
  • 830241e86d add compiletimeassert.h Felix von Leitner 2013-02-22 11:00:32 +0000
  • 74a13126d5 add cast so the file compiles in c++ mode too Felix von Leitner 2012-09-27 01:46:12 +0000
  • babeb35b1f catch more bad encoding Felix von Leitner 2012-09-12 20:20:42 +0000
  • fe4e8dab35 minor update Felix von Leitner 2012-08-18 01:31:21 +0000
  • c5a5c2d6bf add byte_equal_notimingattack Felix von Leitner 2012-05-16 18:02:30 +0000
  • 9b249f6fa7 add awesome hack in isset.h (comex, Linus Torvalds) Felix von Leitner 2012-04-17 21:26:31 +0000
  • 3743706899 add io_fd_canwrite (like io_fd but assume the fd is writable) save a few syscalls here and there Felix von Leitner 2012-04-10 21:15:51 +0000
  • bc5fa9c946 fix endless loop bug on freebsd Felix von Leitner 2012-03-19 02:38:52 +0000
  • d3b996c7ce add trivial compare-and-swap test Felix von Leitner 2012-02-24 02:26:29 +0000
  • e7a4283ec6 fix return value Felix von Leitner 2012-02-24 02:26:11 +0000
  • 33e2bbfd34 win32 cross compile fix for iarray Felix von Leitner 2012-02-24 02:01:27 +0000
  • f3bbb827d2 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 Felix von Leitner 2012-02-24 02:00:52 +0000
  • cf46170dc7 make headers work in C++ add two more variable length integer encoding functions Felix von Leitner 2012-02-07 17:02:40 +0000
  • 24c6e42b3c add functions to encode and decode integers in variable length binary formats Felix von Leitner 2012-02-06 07:59:56 +0000
  • 7a942eb82a add functions to encode and decode variable length integers in binary Felix von Leitner 2012-02-06 07:55:48 +0000
  • 3506fbf4de accept -3 as error return from the callback, too Felix von Leitner 2012-01-20 19:19:49 +0000
  • 1a12d26ebc mingw compile fix Felix von Leitner 2012-01-13 03:20:32 +0000
  • cab6090eb7 the iob calls return int, not void Felix von Leitner 2012-01-13 02:25:31 +0000
  • cf3c05d704 socket_remote4 does not need havescope.h Felix von Leitner 2011-09-16 03:11:43 +0000
  • 77b72218f4 change macros to inline functions to get rid of gcc warning Felix von Leitner 2011-04-28 14:31:55 +0000
  • ea5ded0681 change macros to inline functions to get rid of strict aliasing gcc warnings in code using them Felix von Leitner 2011-04-28 14:28:53 +0000
  • 4f4e6cd650 new makefile Felix von Leitner 2011-02-24 18:10:36 +0000
  • 13bc4b6987 add __likely branch prediction hints make inlining work in the face of gcc in non-gnu c99 mode Felix von Leitner 2010-11-05 03:07:47 +0000
  • 100ac91c79 fix io_receivefd so the incoming buffer is only 1 byte; io_passfd sends only one byte, so we might receive (and discard) other data if we try to read more (Stefan Bühler, from the lightttpd project) Felix von Leitner 2010-10-06 17:34:52 +0000
  • 0305cf80fb only try to receive one byte to avoid discarding data Felix von Leitner 2010-10-06 17:33:25 +0000
  • d702d06774 for installed header files, add comment saying where they came from Felix von Leitner 2010-06-03 22:46:59 +0000
  • efbb246c4d #include <errno.h> Felix von Leitner 2010-01-28 21:40:03 +0000
  • a96b23073c get rid of warning Felix von Leitner 2010-01-19 02:44:06 +0000
  • a16a09c0eb update Makefile for bsd Felix von Leitner 2010-01-19 02:41:34 +0000
  • 3e6d1953be split make install Felix von Leitner 2010-01-19 02:40:40 +0000
  • dfced9889c add/fix man pages zero a buffer in io_passfd so valgrind does not complain when we pass it to a syscall (which did not use the uninitialized parts anyway) Felix von Leitner 2010-01-18 19:51:00 +0000
  • 71b6e8fa00 support SCTP in addition to TCP Felix von Leitner 2010-01-18 19:49:03 +0000
  • 9d7094e084 make it compile again Felix von Leitner 2009-11-12 10:52:43 +0000
  • 6305370c69 remove warning Felix von Leitner 2009-10-27 23:20:21 +0000
  • bb6b70074b clang support Felix von Leitner 2009-10-27 16:33:00 +0000
  • 387be9fe4f remove iarray cruft until I ship it Felix von Leitner 2009-09-12 23:03:02 +0000
  • 205eb7b051 windows fix Felix von Leitner 2009-06-02 15:07:05 +0000
  • a54c2bfa9f add CAS.h Felix von Leitner 2009-05-28 00:46:54 +0000
  • ee8fd72f43 hups Felix von Leitner 2009-05-24 18:12:14 +0000
  • 4311b12786 oops Felix von Leitner 2009-04-30 18:11:08 +0000
  • a22dbda5f7 the #define extern hack in io_fd.c also included time.h, fix that catch case in timeout loop where we have something to report on an fd; in that case do not report a timeout but let the other event get through first. Felix von Leitner 2009-04-25 19:09:27 +0000
  • 72394e8193 add #warning Felix von Leitner 2009-04-09 18:03:38 +0000
  • 963a3377c2 test fr erdgeist Felix von Leitner 2009-04-08 21:27:37 +0000