commit | ad4877023146953d4daa8d91c119124c38620337 | [log] [tgz] |
---|---|---|
author | Christopher Wellons <wellons@nullprogram.com> | Fri Oct 07 11:33:10 2022 -0400 |
committer | Laslo Hunhold <dev@frign.de> | Fri Oct 07 18:00:11 2022 +0200 |
tree | 501307e5501d8261567014e553b45a78ddf8c6ba | |
parent | 4b4292a8f78eec4271213982fdddaf1c479dfe96 [diff] |
Check for empty destination before NUL-terminating This overflow was triggered in the second test of to_lowercase_utf8 where the destination is zero length (w->destlen == 0). `w->destlen` would overflow by subtraction, then the subscript would overflow the destination. Signed-off-by: Laslo Hunhold <dev@frign.de>