Commit Graph

305 Commits

Author SHA1 Message Date
OpenAI
62273bc3f7 Support build-tree libowfat and MatrixSSL dependencies 2026-06-03 20:32:21 +02:00
Mario Fetka
4a32d83f7c Add standalone CMake build system 2026-06-03 20:19:38 +02:00
leitner
7586973f9f ubsan triggered for a unit test in mduptab_add because blen was SIZE_MAX
and adding it overflowed the pointer. So add a check for that in
bstr_diff2.
2025-04-17 12:15:20 +00:00
leitner
87187a76ea remove compiler warning 2024-11-26 16:23:35 +00:00
leitner
a4a0d74dda sprinkle some attributes 2024-11-26 16:23:20 +00:00
leitner
79c86ae7eb make sure it also works if char is unsigned 2024-10-21 16:06:30 +00:00
leitner
747641557e clean up warnings 2024-10-21 16:02:34 +00:00
leitner
f85f30c379 add unit tests 2024-02-02 14:38:25 +00:00
leitner
f73be3264c don't build mduptab_init_reuse (not actually used anymore) 2024-02-02 14:19:26 +00:00
leitner
0cc9c5b1ec don't build strstorage and strduptab (tinyldap doesn't use it anymore)
add comments in strstorage.c and strduptab.c that they are obsolete
2024-02-02 10:54:25 +00:00
leitner
a6eddb5364 add unit tests to bstr* functions 2024-02-01 13:54:57 +00:00
leitner
e7d7f4e336 #include update 2023-10-16 14:29:06 +00:00
leitner
dccc180b7f add unit tests 2023-09-29 12:47:48 +00:00
leitner
73c93d1105 add unit tests 2023-09-29 12:34:07 +00:00
leitner
936fe85cd6 add unit tests 2023-09-24 19:43:39 +00:00
leitner
3e341e22fd mention indirect unit test coverage 2023-09-24 19:43:26 +00:00
leitner
c6c8ccba35 unit tests! 2023-09-17 13:45:04 +00:00
leitner
fc2b16c556 remove #if 0'd code from scan_ldapsearchfilter
add unit tests to scan_ldapaddrequest
2023-09-17 12:17:55 +00:00
leitner
1273a2669e return invalidCredentials on auth fail, not inappropriateAuthentication 2023-09-16 19:49:33 +00:00
leitner
f448fdec71 unit tests 2023-09-16 19:24:45 +00:00
leitner
c02138824b make unit test work with valgrind as well 2023-09-16 19:24:29 +00:00
leitner
3aae498dd3 left shift of signed long is undefined behavior, it turns out.
don't do it then.
2023-09-16 19:23:56 +00:00
leitner
f4d4fb5f1f free unit test buf, no memory leaks from sanitizer 2023-09-16 19:23:23 +00:00
leitner
735f326254 clean some more potential gcov files 2023-09-16 09:19:54 +00:00
leitner
41df4dbaeb add unit tests for scan_ldap*
add return 0 to unit tests for scan_asn1*
2023-09-16 09:19:19 +00:00
leitner
b75c256e32 make sure scan_asn1rawint also works when char == unsigned char (default on ARM) 2023-09-07 21:03:13 +00:00
leitner
5c53f827d3 make check should have warnings enabled and optimizer on 2023-09-07 20:55:47 +00:00
leitner
6a2adea2ad change boolean typesOnly in search request to int 2023-09-07 16:28:49 +00:00
leitner
353b5cbd00 adjust boolean code test suite 2023-09-07 16:18:48 +00:00
leitner
54d3625e1e boolean true is encoded as 0xff not 1 2023-09-03 17:52:23 +00:00
leitner
f6952c5cd2 true is encoded as 0xff, not 1 (thanks Christian Ullrich) 2023-09-03 17:50:19 +00:00
leitner
c41cd9658c test suite work 2023-01-18 14:01:57 +00:00
leitner
53e0ec0ad8 remove unused arguments 2023-01-18 12:21:24 +00:00
leitner
b865407aee add no length check version of sequence parser (so you can tell how
large the incoming message is to allocate buffer sizes)
2023-01-18 12:20:20 +00:00
leitner
187eda5860 support pipelining, requests > 8k
support modify requests on records in data (not the journal)
2023-01-18 12:18:01 +00:00
leitner
336118b774 introduce environment-settable one-shot mode 2022-10-06 11:14:17 +00:00
leitner
41b1bb0349 add some cheap sanity checks 2022-10-06 10:51:14 +00:00
leitner
28e75ee2bd make seccomp filter more pedantic (only allow O_APPEND on journal)
update seccomp filter to newest glibc (newfsstatat)
2022-10-04 11:47:53 +00:00
leitner
f21eca88c7 don't run into an infinite loop when hitting surprise EOF 2022-01-14 19:42:09 +00:00
leitner
1714770b18 100% unit test coverage 2022-01-08 01:21:05 +00:00
leitner
121739c20f clarify comments 2022-01-08 00:45:54 +00:00
leitner
5c30e3ea61 100% unit test coverage 2022-01-08 00:45:08 +00:00
leitner
3cb4e4b695 add mmap based off-by-one detection 2022-01-07 23:09:30 +00:00
leitner
3d9eb5c7da mmap based off-by-one detection 2022-01-07 22:57:42 +00:00
leitner
b4def653ac use mmapped guard page to catch overreads 2022-01-07 04:06:11 +00:00
leitner
fc16e749a2 off by one 2022-01-07 03:44:43 +00:00
leitner
78431d5c83 reject values that have sizeof(long) bytes but are not representable in
a long: positive > LONG_MAX and negative < LONG_MIN
2022-01-07 03:21:40 +00:00
leitner
0e8e8c87a8 100% unit test coverage 2022-01-06 00:22:24 +00:00
leitner
b3716435cc 100% unit test coverage 2022-01-06 00:14:50 +00:00
leitner
40ff4401c4 test one more corner case 2022-01-06 00:00:17 +00:00