Systemd/test/fuzz-regressions
Zbigniew Jędrzejewski-Szmek 9924aef690 test-ellipsize: add tests for ellipsize_mem, fix bugs
First, ellipsize() and ellipsize_mem() should not read past the input
buffer. Those functions take an explicit length for the input data, so they
should not assume that the buffer is terminated by a nul.

Second, ellipsization was off in various cases where wide on multi-byte
characters were used.

We had some basic test for ellipsize(), but apparently it wasn't enough to
catch more serious cases.

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8686.
2018-06-02 21:53:25 +02:00
..
fuzz-dns-packet test: run all fuzz regression tests with all sanitizers 2018-03-14 14:27:04 +01:00
fuzz-journal-remote test-ellipsize: add tests for ellipsize_mem, fix bugs 2018-06-02 21:53:25 +02:00
fuzz-unit-file oss-fuzz: add the reproducer case by oss-fuzz #8064 2018-05-03 16:57:29 +09:00
.gitattributes Add .gitattributes for test/fuzz-regressions 2018-03-17 09:01:53 +01:00
meson.build oss-fuzz: add the reproducer case by oss-fuzz #8064 2018-05-03 16:57:29 +09:00