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:
Artur Wieczorek
2015-08-23 23:53:21 +02:00
committed by Vadim Zeitlin
parent 10a4d15b27
commit b18f6ed10a

View File

@@ -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;