1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 17:51:22 +03:00
systemd/test/fuzz-regressions/fuzz-journal-remote
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
..
crash-5a8f03d4c3a46fcded39527084f437e8e4b54b76
crash-96dee870ea66d03e89ac321eee28ea63a9b9aa45
oss-fuzz-8686 test-ellipsize: add tests for ellipsize_mem, fix bugs 2018-06-02 21:53:25 +02:00