Fix reading ZIP extra field content from local file header.
Extract extra data from buffer allocated for the local extra field. This fixes regression after ZIP-64 additions which resulted in crashes while running the test suite. Closes https://github.com/wxWidgets/wxWidgets/pull/78
This commit is contained in:
committed by
Vadim Zeitlin
parent
10a4d15b27
commit
b18f6ed10a
@@ -1073,7 +1073,7 @@ size_t wxZipEntry::ReadLocal(wxInputStream& stream, wxMBConv& conv)
|
||||
if (stream.LastRead() != extraLen + 0u)
|
||||
return 0;
|
||||
|
||||
if (LoadExtraInfo(m_Extra->GetData(), extraLen, true))
|
||||
if (LoadExtraInfo(m_LocalExtra->GetData(), extraLen, true))
|
||||
{
|
||||
Release(m_LocalExtra);
|
||||
m_LocalExtra = NULL;
|
||||
|
Reference in New Issue
Block a user