diff options
Diffstat (limited to 'main/p7zip/CVE-2017-17969.patch')
-rw-r--r-- | main/p7zip/CVE-2017-17969.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/p7zip/CVE-2017-17969.patch b/main/p7zip/CVE-2017-17969.patch new file mode 100644 index 0000000000..af9e03931f --- /dev/null +++ b/main/p7zip/CVE-2017-17969.patch @@ -0,0 +1,16 @@ +--- p7zip_16.02/CPP/7zip/Compress/ShrinkDecoder.cpp.orig ++++ p7zip_16.02/CPP/7zip/Compress/ShrinkDecoder.cpp +@@ -121,7 +121,12 @@ + { + _stack[i++] = _suffixes[cur]; + cur = _parents[cur]; +- } ++ if (i >= kNumItems) ++ break; ++ } ++ ++ if (i >= kNumItems) ++ break; + + _stack[i++] = (Byte)cur; + lastChar2 = (Byte)cur; |