path: root/Makefile
diff options
authorZbigniew Jędrzejewski-Szmek <>2018-06-02 17:08:46 +0200
committerSven Eden <>2018-08-24 16:47:08 +0200
commit370e2cb260e7d8d063e00f6917e76952131ec741 (patch)
treecb81aad6294e95ecd3b474c538e29e06a57564dd /Makefile
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
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions