D24902: K7Zip: Fix memory use in readAndDecodePackedStreams

2019-10-24 Thread Albert Astals Cid
aacid closed this revision. REPOSITORY R243 KArchive REVISION DETAIL https://phabricator.kde.org/D24902 To: aacid, vkrause Cc: kde-frameworks-devel, apol, dfaure, LeGast00n, GB_2, michaelh, ngraham, bruns

D24902: K7Zip: Fix memory use in readAndDecodePackedStreams

2019-10-24 Thread David Faure
dfaure added inline comments. INLINE COMMENTS > k7zip.cpp:1678 > > QByteArray inflated; > for (const QByteArray& data : qAsConst(inflatedDatas)) { This makes me realize that there could be an inflated.reserve(unpackSize) here, then, to avoid reallocations. REPOSITORY R243

D24902: K7Zip: Fix memory use in readAndDecodePackedStreams

2019-10-24 Thread Volker Krause
vkrause accepted this revision. This revision is now accepted and ready to land. REPOSITORY R243 KArchive BRANCH master REVISION DETAIL https://phabricator.kde.org/D24902 To: aacid, vkrause Cc: kde-frameworks-devel, apol, dfaure, LeGast00n, GB_2, michaelh, ngraham, bruns

D24902: K7Zip: Fix memory use in readAndDecodePackedStreams

2019-10-24 Thread Albert Astals Cid
aacid created this revision. Herald added a project: Frameworks. Herald added a subscriber: kde-frameworks-devel. aacid requested review of this revision. REVISION SUMMARY oss-fuzz has created a file in which inflated size was smaller than unpackSize and thus crc32 was using wrong memory oss-