[PATCH uci 0/6] fixes and improvements
Petr Štetiar
ynezz at true.cz
Sat Oct 3 03:48:24 EDT 2020
Hi,
this patch series fixes some issues, adds more tests and fuzzing focused
mainly on uci_import feature.
Cheers,
Petr
Petr Štetiar (6):
tests: add libFuzzer based fuzzing
file: uci_parse_package: fix heap use after free
cmake: add uci-san cli built with clang sanitizers
tests: cram: add uci import testing on fuzzer corpus
uci: silence UBSAN error by using offsetof macro from compiler
file: uci_file_commit: fix memory leak
CMakeLists.txt | 15 ++
file.c | 11 +-
tests/CMakeLists.txt | 4 +
tests/cram/CMakeLists.txt | 7 +-
tests/cram/test-san_uci_import.t | 15 ++
tests/cram/test_uci_import.t | 15 ++
tests/fuzz/CMakeLists.txt | 18 ++
.../231ee80a172b8e1749b9d91867989d88e4faf7bb | Bin 0 -> 15 bytes
.../26a6253fc1eb695b61a2fc7640ee4c03c19e438e | Bin 0 -> 9 bytes
.../29a6e206439d792afba5e8e9c1fdf55e65a1145d | Bin 0 -> 4 bytes
.../51045ac5401085f5727c6d3c1cac5f8cc32a2927 | 1 +
.../845dcf3f15f3c28235e6be148a690e7f03b07f65 | Bin 0 -> 22 bytes
.../bb589d0621e5472f470fa3425a234c74b1e202e8 | 1 +
.../ea387894a296772f96706df8b999a52d9334c746 | Bin 0 -> 5 bytes
...6,src-000079,time-22005942,op-ext_AO,pos-8 | Bin 0 -> 56 bytes
...d:000000,sig:11,src:000001,op:flip1,pos:24 | Bin 0 -> 44 bytes
...sig:11,src:000022,op:arith8,pos:42,val:+26 | Bin 0 -> 43 bytes
tests/fuzz/dict/uci.dict | 18 ++
tests/fuzz/inputs/dhcp | 49 +++++
tests/fuzz/inputs/firewall | 208 ++++++++++++++++++
tests/fuzz/test-fuzz.c | 60 +++++
uci.h | 6 +-
22 files changed, 418 insertions(+), 10 deletions(-)
create mode 100644 tests/cram/test-san_uci_import.t
create mode 100644 tests/cram/test_uci_import.t
create mode 100644 tests/fuzz/CMakeLists.txt
create mode 100644 tests/fuzz/corpus/231ee80a172b8e1749b9d91867989d88e4faf7bb
create mode 100644 tests/fuzz/corpus/26a6253fc1eb695b61a2fc7640ee4c03c19e438e
create mode 100644 tests/fuzz/corpus/29a6e206439d792afba5e8e9c1fdf55e65a1145d
create mode 100644 tests/fuzz/corpus/51045ac5401085f5727c6d3c1cac5f8cc32a2927
create mode 100644 tests/fuzz/corpus/845dcf3f15f3c28235e6be148a690e7f03b07f65
create mode 100644 tests/fuzz/corpus/bb589d0621e5472f470fa3425a234c74b1e202e8
create mode 100644 tests/fuzz/corpus/ea387894a296772f96706df8b999a52d9334c746
create mode 100644 tests/fuzz/corpus/id-000000,sig-06,src-000079,time-22005942,op-ext_AO,pos-8
create mode 100644 tests/fuzz/corpus/id:000000,sig:11,src:000001,op:flip1,pos:24
create mode 100644 tests/fuzz/corpus/id:000008,sig:11,src:000022,op:arith8,pos:42,val:+26
create mode 100644 tests/fuzz/dict/uci.dict
create mode 100644 tests/fuzz/inputs/dhcp
create mode 100644 tests/fuzz/inputs/firewall
create mode 100644 tests/fuzz/test-fuzz.c
More information about the openwrt-devel
mailing list