|author||Zbigniew Jędrzejewski-Szmek <email@example.com>||2018-06-02 17:08:46 +0200|
|committer||Sven Eden <firstname.lastname@example.org>||2018-08-24 16:47:08 +0200|
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.
Diffstat (limited to 'cb')
0 files changed, 0 insertions, 0 deletions