]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix a possible heap-buffer-overflow in archive_string_append_from_wcs()
authorMartin Matuska <martin@matuska.org>
Sat, 28 Dec 2019 21:58:08 +0000 (22:58 +0100)
committerMartin Matuska <martin@matuska.org>
Sat, 28 Dec 2019 22:48:57 +0000 (23:48 +0100)
commit4f085eea879e2be745f4d9bf57e8513ae48157f4
treef159b62c117df8133f17893bc935678b8356a555
parentfbd0e40471c996c4c78fa00318f0f7e2e40a5179
Fix a possible heap-buffer-overflow in archive_string_append_from_wcs()

When we grow the archive_string buffer, we have to make sure it fits
at least one maximum-sized multibyte character in the current locale
and the null character.

Fixes #1298
libarchive/archive_string.c