]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix possible heap-buffer-overflow in archive_string_append_from_wcs on Windows 1329/head
authorBrad King <brad.king@kitware.com>
Thu, 6 Feb 2020 19:28:02 +0000 (14:28 -0500)
committerBrad King <brad.king@kitware.com>
Thu, 6 Feb 2020 20:00:05 +0000 (15:00 -0500)
commit2b8c3abeb37bb53710ffa574415b667b4077819e
tree277259eac8f5d5db675e0276baf7bbb8d82b9232
parent3c780fa9bbe25b4b0e7d59b68fe6972544d3475c
Fix possible heap-buffer-overflow in archive_string_append_from_wcs on Windows

Fix `archive_string_append_from_wcs_in_codepage` to account for the
already-used portion of the buffer when computing the size of the
remaining buffer for `WideCharToMultiByte` output.
libarchive/archive_string.c