Commit Graph

  • 8cf357cc70 use static inline instead of extern inline Felix von Leitner 2015-12-04 12:11:57 +0000
  • a7929899ea add unistd.h Felix von Leitner 2015-11-23 01:56:23 +0000
  • c21bdfb2dd oops, did not actually flush the buffer Felix von Leitner 2015-11-19 13:43:57 +0000
  • 7e89f0fecb slight optimization for buffer_flush Felix von Leitner 2015-11-19 13:06:15 +0000
  • b9af5f3905 darwin compat Felix von Leitner 2015-11-11 08:04:00 +0000
  • 67299ca714 add socket_udp4b and socket_udp6b Felix von Leitner 2015-10-16 17:12:22 +0000
  • 8f64f1c9af add marshaling code for protocol buffers Felix von Leitner 2015-09-29 19:01:25 +0000
  • ec32c40bab add netstring formatter fix scan_netstring to actually correctly return the length of the transported string add documentation Felix von Leitner 2015-09-29 15:29:57 +0000
  • 3ccdc6055a support gcc 5 builtins for multiplication overflow in safemult.h fix copypasted comment in fmt_asn1dertag add man pages for add_of, sub_of and assign Felix von Leitner 2015-09-29 14:42:40 +0000
  • bc76923c24 add gcc 5 integer overflow intrinsics support to rangecheck.h in the process, identify a gnarly problem that was not only not found by the test suite, there was a test testing for the wrong behavior! Felix von Leitner 2015-09-29 14:10:03 +0000
  • ea849e7ebf a few missing headers and minor fixes fix corking behavior for the case where a buffer follows a buffer in iob_send Felix von Leitner 2015-09-06 18:01:02 +0000
  • 33fcc42d09 add documentation Felix von Leitner 2015-05-13 21:43:45 +0000
  • 0784612aa2 fix timezone handling Felix von Leitner 2015-05-13 21:42:58 +0000
  • ba17f2b5df add scan_iso8601+test Felix von Leitner 2015-05-13 21:21:16 +0000
  • 5f90c12917 add fmt_iso8601 Felix von Leitner 2015-05-13 20:33:51 +0000
  • a9c1f9699e small buffer optimization fix botched noipv6 case in buffer_tcp6 Felix von Leitner 2015-04-23 15:15:08 +0000
  • f2b0c2fb95 use gcc magic and a #define to convert buffer_puts to buffer_put if the string argument length is known at compile time (same for buffer_putsflush) Felix von Leitner 2015-04-19 02:11:41 +0000
  • 06705bc327 remove dead store Felix von Leitner 2015-04-10 23:19:14 +0000
  • 247b2175c4 remove dead store Felix von Leitner 2015-04-10 23:18:47 +0000
  • 003d0b9835 remove dead store Felix von Leitner 2015-04-10 23:16:50 +0000
  • 25a1156f42 remove dead store Felix von Leitner 2015-04-10 23:15:59 +0000
  • b6952d4cbd also install critbit.h documentation clarification Felix von Leitner 2015-04-10 20:57:54 +0000
  • d26d50fc42 make critbit0_contains as pure Felix von Leitner 2015-04-09 23:35:40 +0000
  • d351fcf664 bump version Felix von Leitner 2015-04-09 20:26:12 +0000
  • 98e300970b update dependency Felix von Leitner 2015-04-09 19:06:39 +0000
  • d3b4a5073d add critbit Felix von Leitner 2015-04-09 19:05:32 +0000
  • 5b2ef494ef use xz instead of bz2 in make tar Felix von Leitner 2015-04-09 18:28:03 +0000
  • 14f694ef97 cleaner make clean Felix von Leitner 2015-04-09 18:26:44 +0000
  • 9b025b364f update Makefile Felix von Leitner 2015-04-09 18:25:35 +0000
  • 82388e1c23 SECURITY: fix botched integer overflow handling logic in stralloc_ready (Giorgio) Felix von Leitner 2015-04-09 18:23:23 +0000
  • 45251a3178 support noipv6 being set externally even when there is perfectly good IPv6 support. Felix von Leitner 2015-03-20 14:58:13 +0000
  • 0842216df2 damn it, fucked up the return value Felix von Leitner 2015-03-20 03:50:42 +0000
  • 4ed2a16293 ... but if errno==EINVAL still fall back to socket+fcntl (Robert Henney) Felix von Leitner 2015-03-20 03:34:37 +0000
  • 859b532662 if SOCK_NONBLOCK is defined, use it instead of socket+fcntl Felix von Leitner 2015-03-17 00:01:00 +0000
  • a965db504b mmap_read/mmap_shared on zero length files no longer fail but return a zero length buffer Felix von Leitner 2015-03-02 21:25:57 +0000
  • 083dc555f3 more constness for stralloc and buffer Felix von Leitner 2015-02-04 02:57:56 +0000
  • 6a74a47988 more updates Felix von Leitner 2014-12-27 13:39:20 +0000
  • 48a0c17fc7 better Makefile Felix von Leitner 2014-12-27 13:38:12 +0000
  • 39469857d6 add haveuint128.h as dependency to make dep Felix von Leitner 2014-11-01 20:52:48 +0000
  • 9a5e31966d add havealloca as dependency to dep Felix von Leitner 2014-11-01 20:51:54 +0000
  • 8640df0e04 hopefully fix the infinite loop in gatling Felix von Leitner 2014-10-19 01:52:36 +0000
  • a606013ffd remove compiler warning Felix von Leitner 2014-10-16 16:17:09 +0000
  • 1c9d7b0b30 add io_fd_flags so the caller can tell io_fd whether the socket is blocking (saves one fcntl syscall) Felix von Leitner 2014-10-09 09:02:28 +0000
  • 7392f7a011 get rid of io_starteventloop Felix von Leitner 2014-10-07 14:06:17 +0000
  • 63f5284e37 update Makefile Felix von Leitner 2014-10-07 14:04:54 +0000
  • 4cb8ad91f0 on Linux, in iob_send, if MSG_MORE is defined, and the request type lends itself to it, used sendto/sendmsg with MSG_MORE instead of TCP_CORK (saves two syscalls) Felix von Leitner 2014-10-07 13:47:19 +0000
  • 62ec3d9b67 on Linux, save a few syscalls by using sendto/sendmsg with MSG_MORE instead of write/writev + setsockopt TCP_CORK Felix von Leitner 2014-10-07 13:43:50 +0000
  • 051ed2e10d forgot to check in the actual code m( Felix von Leitner 2014-10-07 11:40:43 +0000
  • ad239137bf add socket_fastopen, socket_fastopen_connect4, socket_fastopen_connect6 and socket_quickack Felix von Leitner 2014-10-07 11:40:21 +0000
  • b3b2c14973 add scan_html_tagarg Felix von Leitner 2014-09-17 13:58:59 +0000
  • 95999b640a scan_html forgot to output '<' when it did not know the tag coming in Felix von Leitner 2014-09-17 13:43:54 +0000
  • 3f0fa50edc add fmt_html_tagarg, fmt_xml Felix von Leitner 2014-09-16 15:41:35 +0000
  • fa5ffbb19b fix buffer_get Felix von Leitner 2014-09-15 21:00:54 +0000
  • aedf1016c1 revert to level triggering for epoll (forgot io_wantread) Felix von Leitner 2014-09-09 13:48:04 +0000
  • d79bd625f1 also install compiletimeassert.h Felix von Leitner 2014-09-03 11:51:44 +0000
  • 51b2c32c72 fix copy/paste error Felix von Leitner 2014-09-03 11:15:21 +0000
  • c7654a4040 also mention scan_ip6if(3) Felix von Leitner 2014-09-01 10:41:00 +0000
  • 1de8f45d8a revert edge triggering epoll; it had reliability and fairness issues and was also not actually faster Felix von Leitner 2014-08-28 19:03:57 +0000
  • d86346ba72 documented wrong return type Felix von Leitner 2014-08-24 15:19:33 +0000
  • 18d9655ca4 add more comments Felix von Leitner 2014-06-30 11:40:52 +0000
  • 7f5a729a1a add helpful #define HAVE_EAGAIN_READWRITE Felix von Leitner 2014-06-05 20:47:09 +0000
  • d8da202a8b introduce io_eagain_read and io_eagain_write (discontinue using io_eagain plz) Felix von Leitner 2014-06-05 20:43:01 +0000
  • 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 Felix von Leitner 2014-06-05 19:17:24 +0000
  • 7102b7cb7e fix and document iarray Felix von Leitner 2014-06-05 16:31:06 +0000
  • 44bcab1661 finish epoll move to edge triggering Felix von Leitner 2014-05-08 04:25:42 +0000
  • 9ed80b2d0e fix some bugs that cppcheck found Felix von Leitner 2014-05-07 23:51:24 +0000
  • e796d5bdbc better comment Felix von Leitner 2014-04-23 13:44:52 +0000
  • 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