Commit Graph

  • f8f40a544a now that gcc 11's static analyzer looks at array bounds in arguments like "char ip[4]", let's be more strict about that master Felix von Leitner 2021-04-27 17:39:42 +0000
  • db4ef5494b some crude attempt to fix mingw cross build Felix von Leitner 2021-04-27 17:38:54 +0000
  • a16f238d80 next attempt (I need a bsd shell) Felix von Leitner 2021-04-25 11:09:25 +0000
  • 714a06fcb7 kqueue path assumed EVFILT_READ and EVFILT_WRITE are bits that can be used with | and ~ and & they aren't Felix von Leitner 2021-04-25 11:03:53 +0000
  • 0c8b9934d2 provide prototype Felix von Leitner 2021-04-24 12:48:50 +0000
  • 0c4c4efbe0 try too fix erdgeist's bug Felix von Leitner 2021-04-24 12:47:18 +0000
  • a246f90de5 try to fix erdgeist's bug Felix von Leitner 2021-04-24 12:46:53 +0000
  • 26a19cf273 less compiler warnings Felix von Leitner 2021-04-24 12:33:33 +0000
  • 45c5556548 better test Felix von Leitner 2021-04-24 11:44:17 +0000
  • 52d9cfa681 in io_eagain, make sure the kernel knows we wanted to write to the descriptor in case we optimized the syscall away previously in iob_send leave loop if we got a partial write Felix von Leitner 2021-04-24 11:39:18 +0000
  • 2a08bdfb89 change t.c from threading to full io_wait Felix von Leitner 2021-04-24 11:38:24 +0000
  • 0be5f69f11 fix deps Felix von Leitner 2021-04-24 10:47:51 +0000
  • b023cbb0aa test iob_send Felix von Leitner 2021-04-23 08:06:41 +0000
  • b5f0721298 fix out of bounds memory access Felix von Leitner 2021-04-23 08:02:09 +0000
  • b148d97cad limit iovec size for sendmsg code path to 50 Felix von Leitner 2021-04-22 12:53:53 +0000
  • 7705db76e2 mention sendmsg issue Felix von Leitner 2021-04-22 11:31:22 +0000
  • 3e7158a2fc add missing includes Felix von Leitner 2021-04-22 11:12:52 +0000
  • 77ea7db2d8 add missing man pages Felix von Leitner 2021-04-22 11:11:52 +0000
  • c4b742d9e0 left old constants in Felix von Leitner 2021-04-22 11:08:29 +0000
  • 53db030fd0 need to use own constants now Felix von Leitner 2021-04-22 11:04:41 +0000
  • ed984eb886 now with accept4 Felix von Leitner 2021-04-22 11:03:24 +0000
  • e23d5bbc5b OSX does not have accept4 :( Felix von Leitner 2021-04-22 11:02:44 +0000
  • 28d01b3688 also escape negative chars (we are in utf-8 land now, no longer latin1) Felix von Leitner 2021-04-21 11:32:03 +0000
  • 5211d82384 it's fcntl.h not sys/fcntl.h Felix von Leitner 2021-04-08 11:08:47 +0000
  • 2b74003e85 add missign build deps (thanks Giorgio) Felix von Leitner 2021-03-29 08:33:24 +0000
  • f8f8908929 add missed dependency Felix von Leitner 2021-03-19 17:09:46 +0000
  • b21da7cf70 add support for saving syscalls with accept4 Felix von Leitner 2021-03-12 16:23:32 +0000
  • 9e831fe414 move cleanup after check that all events are handled Felix von Leitner 2021-03-12 10:43:46 +0000
  • 874530bace prevent infinite loop in cleanup code for io_close-with-outstanding-events-queued race prevention Felix von Leitner 2021-03-11 14:13:51 +0000
  • d342fa80e2 properly initialize deferred list in io_fd (did not help though) Felix von Leitner 2021-03-09 13:54:59 +0000
  • 9f9b777fab add snarky comment Felix von Leitner 2021-02-18 23:21:57 +0000
  • ce92de14c0 might actually work now Felix von Leitner 2021-02-17 13:48:39 +0000
  • 5420136c6b attempt to prevent future endless loops in io_wait half-closed fd cleanup Felix von Leitner 2021-02-16 15:50:38 +0000
  • 93111d2dc7 add buffer_init_allocbuf, buffer_init_read, buffer_init_write, buffer_init_read_allocbuf, buffer_init_write_allocbuf Felix von Leitner 2021-01-03 23:15:28 +0000
  • 96a42d6c7e document changes Felix von Leitner 2020-12-07 17:54:40 +0000
  • c9823c9fbd you need to #include <stdlib.h> Felix von Leitner 2020-12-07 17:53:46 +0000
  • 40a5ae7d3b add fmt_strm_malloc Felix von Leitner 2020-12-07 17:53:24 +0000
  • bd5461a618 add man page for fmt_strm_alloca and fmt_strm_malloc Felix von Leitner 2020-12-07 17:53:13 +0000
  • 6acd715154 mmap_private opens the file for reading, not for writing Felix von Leitner 2020-12-07 15:00:54 +0000
  • 624c3ac378 more cross references for open_* Felix von Leitner 2020-12-07 14:57:16 +0000
  • 00b0891427 correct file open mode for mmap_private man page Felix von Leitner 2020-12-07 14:20:57 +0000
  • 7a484e1f0e more cross references Felix von Leitner 2020-12-07 14:20:04 +0000
  • bab35a1169 update dependencies, use $(AR) and $(RANLIB) Felix von Leitner 2020-12-01 13:50:02 +0000
  • 8b933945a1 forward changes made in prototypes to actual implementation Felix von Leitner 2020-11-20 13:42:58 +0000
  • fe000e3df8 buffer_seek did not work at all m( Felix von Leitner 2020-11-14 17:34:21 +0000
  • 1948ac17a4 undo fatfinger Felix von Leitner 2020-11-14 17:21:58 +0000
  • 81def53a7d also advance cur if upstream is a bytestream or an iobuf Felix von Leitner 2020-11-14 17:09:49 +0000
  • 96ea061228 also increment cur in bs_skip if upstream is not a memory buffer Felix von Leitner 2020-11-14 16:53:54 +0000
  • c3366f8bbb only use writev for larger chunks in buffer_putflush only use lseek if it saves a read in buffer_seek Felix von Leitner 2020-11-10 21:51:22 +0000
  • 726614af36 abort loop if EOF Felix von Leitner 2020-11-10 21:23:45 +0000
  • a10f89d5f3 add compiler.h to abstract gcc attributes Felix von Leitner 2020-11-08 00:29:35 +0000
  • 78084c5bd5 also set upstream to error state Felix von Leitner 2020-11-01 20:15:32 +0000
  • addd1d3e88 add bs_seterrorstate Felix von Leitner 2020-11-01 15:16:16 +0000
  • 622ee36925 also install parse.h Felix von Leitner 2020-10-30 21:39:46 +0000
  • c7e6a3a55d buffer_seek is no longer limited to the current buffer contents add automated way to run unit test: make check add parse.h add bytestream abstraction for parsing data from a buffer or a file Felix von Leitner 2020-10-30 20:54:08 +0000
  • 26a48663ab add functions for capacity checking and to skip bytes Felix von Leitner 2020-10-30 19:50:06 +0000
  • 36e3301ed9 make check can now run in parallel Felix von Leitner 2020-10-30 19:46:30 +0000
  • 36059b066a move bs_err into own C file Felix von Leitner 2020-10-30 15:35:53 +0000
  • da6046bc71 add unit tests for bs_capacitycheck (same as for bs_capacityassert basically) Felix von Leitner 2020-10-30 15:18:37 +0000
  • 626a424607 remove some warnings in unit tests catch impossible buffer in bs_init_membuf Felix von Leitner 2020-10-30 15:06:17 +0000
  • da34bb9603 add "make check" target and make it work :) Felix von Leitner 2020-10-30 14:50:42 +0000
  • 835476466a fix unit tests Felix von Leitner 2020-10-30 14:39:49 +0000
  • 5ce2f8743c make unit tests self contained Felix von Leitner 2020-10-30 14:36:05 +0000
  • 671b6ed25e add prs_readblob (no unit tests yet) Felix von Leitner 2020-10-30 12:52:15 +0000
  • c8b8fbe93b add and use bs_capacityassert Felix von Leitner 2020-10-30 12:13:05 +0000
  • 04f6a50952 add asciiz parsing Felix von Leitner 2020-10-30 01:27:19 +0000
  • 6c1276294d add buffer_peekc Felix von Leitner 2020-10-30 00:26:41 +0000
  • e1484560e8 add a few helpers for parsing binary data Felix von Leitner 2020-10-29 23:25:54 +0000
  • ee6c774c98 give __readmem__ its own #ifndef Felix von Leitner 2020-10-27 20:43:09 +0000
  • 966c3f4d2f add byte_start, byte_starts add a man page for byte_equal_notimingattack Felix von Leitner 2020-10-22 20:43:13 +0000
  • f56460eebc first_deferred actually needs to be extern all the time, not just my_extern Felix von Leitner 2020-08-10 01:40:40 +0000
  • 0d817b6e57 add man pages for fmt_copybytes and fmt_copybytes_sizeof_minus1 Felix von Leitner 2020-07-14 19:55:38 +0000
  • 39587d0c14 fmt_copybytes and fmt_copybytes_sizeof_minus1 now follow the dest==NULL convention Felix von Leitner 2020-07-14 19:49:39 +0000
  • 85dfa44135 add fmt_copybytes_sizeof_minus1 Felix von Leitner 2020-07-14 19:46:35 +0000
  • 1b2e166e79 add fmt and scan versions of uint* Felix von Leitner 2020-07-14 18:11:59 +0000
  • 6567d89ac0 add static analyzer targets Felix von Leitner 2020-07-14 16:08:26 +0000
  • e69ffa426f fix memory leak in error path Felix von Leitner 2020-07-14 16:08:08 +0000
  • 519c59690d add errmsg documentation Felix von Leitner 2020-07-14 16:07:30 +0000
  • d9d7a26770 fix two complaints by clang's static analyzer Felix von Leitner 2020-06-16 12:40:57 +0000
  • a2081362bb port the epoll optimizations to kqueue, hopefully repairing it in the process Felix von Leitner 2020-05-15 11:42:53 +0000
  • 8ada277583 silence another compiler warning Felix von Leitner 2020-05-14 14:48:40 +0000
  • 798848ec05 remove compiler warnings in ent try to fix io_waituntil2 on freebsd Felix von Leitner 2020-05-14 14:46:31 +0000
  • b8fd3b6bc9 escape </script> in fmt_jsonescape Felix von Leitner 2020-05-07 12:08:38 +0000
  • 77b31e22a0 don't assume memory allocations will succeed Felix von Leitner 2020-05-05 12:39:19 +0000
  • c0b851da69 try to work with gcc 8.3, too Felix von Leitner 2020-04-17 07:50:37 +0000
  • bf4f402892 remove failing assert that failed build Felix von Leitner 2020-04-16 17:33:09 +0000
  • 445a56512d use _Static_assert if available Felix von Leitner 2020-04-08 11:37:31 +0000
  • 3262a8dbf6 some old glibc may define MSG_ZEROCOPY but not SO_ZEROCOPY :-( Felix von Leitner 2020-04-05 20:19:25 +0000
  • 782cbd81b4 the glibc case of the new __writememsz__ and friends macros broke Felix von Leitner 2020-04-05 20:19:11 +0000
  • a9b2cc59aa support gcc 10's access attribute when compiling with dietlibc Felix von Leitner 2020-04-01 17:10:26 +0000
  • 7208ff99c2 make mmap_private on Windows work on read-only files, too Felix von Leitner 2019-05-07 16:18:59 +0000
  • a85915ba39 add some comments Felix von Leitner 2019-04-27 09:28:40 +0000
  • c629697da4 add libowfat/ to includes Felix von Leitner 2019-04-27 09:15:53 +0000
  • 5945afed04 half-hearted improvements to Windows compilability Felix von Leitner 2019-04-23 13:25:26 +0000
  • 62b1800438 half-hearted Windows compilability improvements Felix von Leitner 2019-04-23 13:22:07 +0000
  • 600d51d5ac bsd fix Felix von Leitner 2019-02-21 12:43:06 +0000
  • e78d79b263 less warnings Felix von Leitner 2019-02-21 12:39:44 +0000
  • 79f12bb3dc scan_utf8_sem Felix von Leitner 2019-02-21 12:38:12 +0000
  • 1514eeed74 another attempt Felix von Leitner 2019-02-21 12:33:37 +0000
  • 75b28ec8ba make headers fix for bsd make Felix von Leitner 2019-02-21 12:31:59 +0000