Felix von Leitner
|
78084c5bd5
|
also set upstream to error state
|
2020-11-01 20:15:32 +00:00 |
Felix von Leitner
|
addd1d3e88
|
add bs_seterrorstate
|
2020-11-01 15:16:16 +00:00 |
Felix von Leitner
|
622ee36925
|
also install parse.h
|
2020-10-30 21:39:46 +00:00 |
Felix von Leitner
|
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
|
2020-10-30 20:54:08 +00:00 |
Felix von Leitner
|
26a48663ab
|
add functions for capacity checking and to skip bytes
|
2020-10-30 19:50:06 +00:00 |
Felix von Leitner
|
36e3301ed9
|
make check can now run in parallel
|
2020-10-30 19:46:30 +00:00 |
Felix von Leitner
|
36059b066a
|
move bs_err into own C file
|
2020-10-30 15:35:53 +00:00 |
Felix von Leitner
|
da6046bc71
|
add unit tests for bs_capacitycheck (same as for bs_capacityassert
basically)
|
2020-10-30 15:18:37 +00:00 |
Felix von Leitner
|
626a424607
|
remove some warnings in unit tests
catch impossible buffer in bs_init_membuf
|
2020-10-30 15:06:17 +00:00 |
Felix von Leitner
|
da34bb9603
|
add "make check" target and make it work :)
|
2020-10-30 14:50:42 +00:00 |
Felix von Leitner
|
835476466a
|
fix unit tests
|
2020-10-30 14:39:49 +00:00 |
Felix von Leitner
|
5ce2f8743c
|
make unit tests self contained
|
2020-10-30 14:36:05 +00:00 |
Felix von Leitner
|
671b6ed25e
|
add prs_readblob (no unit tests yet)
|
2020-10-30 12:52:15 +00:00 |
Felix von Leitner
|
c8b8fbe93b
|
add and use bs_capacityassert
|
2020-10-30 12:13:05 +00:00 |
Felix von Leitner
|
04f6a50952
|
add asciiz parsing
|
2020-10-30 01:27:19 +00:00 |
Felix von Leitner
|
6c1276294d
|
add buffer_peekc
|
2020-10-30 00:26:41 +00:00 |
Felix von Leitner
|
e1484560e8
|
add a few helpers for parsing binary data
|
2020-10-29 23:25:54 +00:00 |
Felix von Leitner
|
ee6c774c98
|
give __readmem__ its own #ifndef
|
2020-10-27 20:43:09 +00:00 |
Felix von Leitner
|
966c3f4d2f
|
add byte_start, byte_starts
add a man page for byte_equal_notimingattack
|
2020-10-22 20:43:13 +00:00 |
Felix von Leitner
|
f56460eebc
|
first_deferred actually needs to be extern all the time, not just
my_extern
|
2020-08-10 01:40:40 +00:00 |
Felix von Leitner
|
0d817b6e57
|
add man pages for fmt_copybytes and fmt_copybytes_sizeof_minus1
|
2020-07-14 19:55:38 +00:00 |
Felix von Leitner
|
39587d0c14
|
fmt_copybytes and fmt_copybytes_sizeof_minus1 now follow the dest==NULL
convention
|
2020-07-14 19:49:39 +00:00 |
Felix von Leitner
|
85dfa44135
|
add fmt_copybytes_sizeof_minus1
|
2020-07-14 19:46:35 +00:00 |
Felix von Leitner
|
1b2e166e79
|
add fmt and scan versions of uint*
|
2020-07-14 18:11:59 +00:00 |
Felix von Leitner
|
6567d89ac0
|
add static analyzer targets
|
2020-07-14 16:08:26 +00:00 |
Felix von Leitner
|
e69ffa426f
|
fix memory leak in error path
|
2020-07-14 16:08:08 +00:00 |
Felix von Leitner
|
519c59690d
|
add errmsg documentation
|
2020-07-14 16:07:30 +00:00 |
Felix von Leitner
|
d9d7a26770
|
fix two complaints by clang's static analyzer
|
2020-06-16 12:40:57 +00:00 |
Felix von Leitner
|
a2081362bb
|
port the epoll optimizations to kqueue, hopefully repairing it in the process
|
2020-05-15 11:42:53 +00:00 |
Felix von Leitner
|
8ada277583
|
silence another compiler warning
|
2020-05-14 14:48:40 +00:00 |
Felix von Leitner
|
798848ec05
|
remove compiler warnings in ent
try to fix io_waituntil2 on freebsd
|
2020-05-14 14:46:31 +00:00 |
Felix von Leitner
|
b8fd3b6bc9
|
escape </script> in fmt_jsonescape
|
2020-05-07 12:08:38 +00:00 |
Felix von Leitner
|
77b31e22a0
|
don't assume memory allocations will succeed
|
2020-05-05 12:39:19 +00:00 |
Felix von Leitner
|
c0b851da69
|
try to work with gcc 8.3, too
|
2020-04-17 07:50:37 +00:00 |
Felix von Leitner
|
bf4f402892
|
remove failing assert that failed build
|
2020-04-16 17:33:09 +00:00 |
Felix von Leitner
|
445a56512d
|
use _Static_assert if available
|
2020-04-08 11:37:31 +00:00 |
Felix von Leitner
|
3262a8dbf6
|
some old glibc may define MSG_ZEROCOPY but not SO_ZEROCOPY :-(
|
2020-04-05 20:19:25 +00:00 |
Felix von Leitner
|
782cbd81b4
|
the glibc case of the new __writememsz__ and friends macros broke
|
2020-04-05 20:19:11 +00:00 |
Felix von Leitner
|
a9b2cc59aa
|
support gcc 10's access attribute when compiling with dietlibc
|
2020-04-01 17:10:26 +00:00 |
Felix von Leitner
|
7208ff99c2
|
make mmap_private on Windows work on read-only files, too
|
2019-05-07 16:18:59 +00:00 |
Felix von Leitner
|
a85915ba39
|
add some comments
|
2019-04-27 09:28:40 +00:00 |
Felix von Leitner
|
c629697da4
|
add libowfat/ to includes
|
2019-04-27 09:15:53 +00:00 |
Felix von Leitner
|
5945afed04
|
half-hearted improvements to Windows compilability
|
2019-04-23 13:25:26 +00:00 |
Felix von Leitner
|
62b1800438
|
half-hearted Windows compilability improvements
|
2019-04-23 13:22:07 +00:00 |
Felix von Leitner
|
600d51d5ac
|
bsd fix
|
2019-02-21 12:43:06 +00:00 |
Felix von Leitner
|
e78d79b263
|
less warnings
|
2019-02-21 12:39:44 +00:00 |
Felix von Leitner
|
79f12bb3dc
|
scan_utf8_sem
|
2019-02-21 12:38:12 +00:00 |
Felix von Leitner
|
1514eeed74
|
another attempt
|
2019-02-21 12:33:37 +00:00 |
Felix von Leitner
|
75b28ec8ba
|
make headers fix for bsd make
|
2019-02-21 12:31:59 +00:00 |
Felix von Leitner
|
43983c9b52
|
BSD build fix (hopefully)
move more #include to <libowfat/...>
|
2019-02-21 12:24:05 +00:00 |