9fa9eb9ac7
Rename them to follow the make makepatch naming, and regenerate them. With hat: portmgr Sponsored by: Absolight
18 lines
729 B
C++
18 lines
729 B
C++
Patch for CVE-2016-2335.
|
|
|
|
Obtained from: https://sourceforge.net/p/p7zip/discussion/383043/thread/9d0fb86b/
|
|
--- CPP/7zip/Archive/Udf/UdfIn.cpp.orig 2015-11-20 20:40:08 UTC
|
|
+++ CPP/7zip/Archive/Udf/UdfIn.cpp
|
|
@@ -389,7 +389,11 @@ HRESULT CInArchive::ReadFileItem(int vol
|
|
return S_FALSE;
|
|
CFile &file = Files.Back();
|
|
const CLogVol &vol = LogVols[volIndex];
|
|
- CPartition &partition = Partitions[vol.PartitionMaps[lad.Location.PartitionRef].PartitionIndex];
|
|
+ unsigned partitionRef = lad.Location.PartitionRef;
|
|
+
|
|
+ if (partitionRef >= vol.PartitionMaps.Size())
|
|
+ return S_FALSE;
|
|
+ CPartition &partition = Partitions[vol.PartitionMaps[partitionRef].PartitionIndex];
|
|
|
|
UInt32 key = lad.Location.Pos;
|
|
UInt32 value;
|