summaryrefslogtreecommitdiff
path: root/src/uaccess-command
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-06-02 17:08:46 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit370e2cb260e7d8d063e00f6917e76952131ec741 (patch)
treecb81aad6294e95ecd3b474c538e29e06a57564dd /src/uaccess-command
parentf39f1b81b67bbe5137bdc87e76076407bd77f0c3 (diff)
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 'src/uaccess-command')
0 files changed, 0 insertions, 0 deletions