leitner
ea2b3e6c6f
updates makefile dependencies
...
remove compiler.h include from tryinline.c
add #ifdef INTERNAL to files included by n.c and ent.c so they don't need headers in libowfat/ and can compile without an installed or build libowfat
2025-01-22 17:32:17 +00:00
leitner
4e1eb3d06f
include cleanup
2025-01-20 18:47:18 +00:00
leitner
cf32aafe8a
great include cleanup
2025-01-20 18:40:47 +00:00
leitner
f232d06e89
fix off-by-one in fmt_escapecharxml
...
include scan.h not fmt.h in scan_utf8
2024-10-22 12:36:52 +00:00
leitner
0d788fb946
get rid of gcc compiler warning
2024-02-12 16:41:51 +00:00
leitner
365cfb10c5
silence compiler warning
2024-02-01 13:44:13 +00:00
leitner
cee447066f
get rid of undefined behavior regarding -INT_MAX
2023-09-29 17:25:40 +00:00
leitner
90529e9952
reduce compiler warnings during unit tests
2023-09-29 12:53:57 +00:00
leitner
4422ec3770
gcc 13 -fanalyze run with fixes / comments about false positives
2023-05-02 12:51:56 +00:00
leitner
ec3d2bfe6c
change a few // comments back to /* */ for older compilers
2023-01-21 16:23:58 +00:00
leitner
d93ddc33b8
fix buffer overread for len=0 in scan_longn (Martin Castillo)
2022-04-11 08:35:54 +00:00
leitner
de672180ac
don't disturb glibc with __deprecated__
2022-03-11 12:59:37 +00:00
leitner
7ce1c93d0f
add "make check" target and make it work :)
2020-10-30 14:50:42 +00:00
leitner
fbb1a69c9c
fix unit tests
2020-10-30 14:39:49 +00:00
leitner
bbaf63c7fd
remove compiler warnings in ent
...
try to fix io_waituntil2 on freebsd
2020-05-14 14:46:31 +00:00
leitner
8a8109f27e
support gcc 10's access attribute when compiling with dietlibc
2020-04-01 17:10:26 +00:00
leitner
b9eb81c58f
move unit tests into each file (compile with -DUNITTEST)
2017-05-13 22:52:21 +00:00
leitner
760598ec2f
#include <foo.h> -> #include <libowfat/foo.h>
2017-05-13 22:51:26 +00:00
leitner
dba47741bf
remove new compiler warnings from gcc 7
2017-04-30 20:22:21 +00:00
leitner
23b1412d47
add new line
2017-03-13 16:26:44 +00:00
leitner
7d308b957d
add man page for scan_utf8_sem
2017-03-13 15:46:25 +00:00
leitner
14f26729e9
add scan_utf8_sem
...
add utf8 test suite
2017-03-13 15:44:48 +00:00
leitner
3872474e17
osx
2016-05-23 09:44:14 +00:00
leitner
d26b8082d8
shut up new gcc 6 warnings
2016-04-27 14:07:49 +00:00
leitner
05e4dcc94a
stupid sign extension
2016-04-25 19:23:50 +00:00
leitner
624412ce03
fix two issues found by clang's static analyser
2016-04-25 12:07:13 +00:00
leitner
32a312b8f1
add marshaling code for protocol buffers
2015-09-29 19:01:25 +00:00
leitner
6859c4b6ca
add netstring formatter
...
fix scan_netstring to actually correctly return the length of the transported string
add documentation
2015-09-29 15:29:57 +00:00
leitner
cdecd16ab3
add documentation
2015-05-13 21:43:45 +00:00
leitner
e5865bcc52
fix timezone handling
2015-05-13 21:42:58 +00:00
leitner
ac6979e4af
add scan_iso8601+test
2015-05-13 21:21:16 +00:00
leitner
798c06a785
add more comments
2014-06-30 11:40:52 +00:00
leitner
6d18d4ecc3
better comment
2014-04-23 13:44:52 +00:00
leitner
4ecc33dcea
catch not enough bytes in input buffer case
2014-04-23 13:40:23 +00:00
leitner
8106f8c5a6
remove superfluous &0x7f
2014-04-23 11:54:24 +00:00
leitner
cf1406735c
much shorter way to do the same thing
2014-04-15 20:36:50 +00:00
leitner
708c358a74
for asn1derlength: save a few bytes
...
for asn1dertag: catch too-large-value overflow
2014-04-15 20:12:50 +00:00
leitner
24d1ccb1b7
reject non-minimally encoded ASN.1 DER data
...
split scan_asn1derlength into scan_asn1derlength and scan_asn1derlengthvalue
2014-04-15 18:52:21 +00:00
leitner
74d676fc62
fix typo in man page
...
make use of __uint128_t in scan_ulongn and provide long long based
implementation for 32-bit platforms
2014-03-15 16:04:55 +00:00
leitner
9b6671efee
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
2014-03-15 15:18:55 +00:00
leitner
9af06ac843
remove can't happen code and instead force a compile time error
2014-03-15 12:38:10 +00:00
leitner
baec005507
improved code path for typical platforms where there is a wider integer type
2014-03-14 21:32:29 +00:00
leitner
08ba483bfb
catch other potential overflow
2014-03-14 20:35:47 +00:00
leitner
4a04c40595
get rid of more -Wconversion warnings
2014-03-14 19:42:54 +00:00
leitner
d14d2536f0
get rid of -Wconversion warnings
2014-03-14 02:15:38 +00:00
leitner
e1081e4b13
remove -Wconversion warnings
2014-03-14 01:53:08 +00:00
leitner
18afec7d68
scan_*longlong now properly abort if the number would not fit
2014-03-14 01:33:03 +00:00
leitner
01ffc04006
do proper early abort in the other scan_* routines if the numeric value
...
is too large
2014-03-14 00:24:02 +00:00
leitner
1d2add208f
add json encoding routines to textcode
2014-01-28 16:12:39 +00:00
leitner
45702476e7
add scan_netstring
2013-09-09 22:09:07 +00:00