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 shared/logs-show: be more careful before using a _SOURCE_REALTIME_TIMESTAMP entry 2018-05-31 14:30:23 +02:00
crash-96dee870ea66d03e89ac321eee28ea63a9b9aa45 shared/logs-show: fix mixup between length-based memory duplication and string operations 2018-05-31 14:30:23 +02:00
oss-fuzz-8686 test-ellipsize: add tests for ellipsize_mem, fix bugs 2018-06-02 21:53:25 +02:00