util-linux/libblkid
Thomas Weißschuh ee5c762166 libblkid: iso9660: allocate enough space for UTF16 decoding
When merge_utf16be_ascii() encounters high-codepoint surrogate pairs it
emits four bytes of output for one byte of ascii input.
In addition with the remaining ascii characters from the second loop we
need up to 5 * sizeof(input) / 2 bytes as output buffer.

As we decode up to 128 ascii characters with merge_utf16be_ascii() we
need 320 bytes of buffer available.

Furthermore adapt merge_utf16be_ascii() to not write paste the output
buffer end.

Fix OSS-Fuzz issue 53149 ( #1887 )
2023-02-17 15:03:58 +08:00
..
docs merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
samples merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
src libblkid: iso9660: allocate enough space for UTF16 decoding 2023-02-17 15:03:58 +08:00
COPYING Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
Makemodule.am merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
blkid.pc.in Import Upstream version 2.34 2022-05-14 03:14:32 +08:00
libblkid.3 merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
libblkid.3.adoc merge upstream 2.38.1 2023-02-17 14:33:46 +08:00
meson.build merge upstream 2.38.1 2023-02-17 14:33:46 +08:00