diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2021-05-29 11:51:19 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2021-05-31 07:48:02 -0700 |
| commit | 5aac941441b1e72558dac40ebb40bc8958a78c29 (patch) | |
| tree | 4b437af9ae105d0d40672faabd7949cd8f83583a | |
| parent | afae4dcb71308579135d42181d64793e71ff0d31 (diff) | |
| download | meta-openembedded-5aac941441b1e72558dac40ebb40bc8958a78c29.tar.gz | |
p7zip: refresh patches with devtool to apply cleanly
change_numMethods_from_bool_to_unsigned.patch added in:
https://git.openembedded.org/meta-openembedded/commit/?id=3c36a8efe2a964c3aa9bfcd836cee3f80a837fcd
doesn't apply cleanly:
ERROR: p7zip-16.02-r0 do_patch: Fuzz detected:
Applying patch change_numMethods_from_bool_to_unsigned.patch
patching file CPP/7zip/Archive/Wim/WimHandler.cpp
Hunk #1 succeeded at 298 with fuzz 1.
The context lines in the patches can be updated with devtool:
devtool modify p7zip
devtool finish --force-patch-refresh p7zip <layer_path>
Don't forget to review changes done by devtool!
ERROR: p7zip-16.02-r0 do_patch: QA Issue: Patch log indicates that patches do not apply cleanly. [patch-fuzz]
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
4 files changed, 41 insertions, 14 deletions
diff --git a/meta-oe/recipes-extended/p7zip/files/0001-Fix-narrowing-errors-Wc-11-narrowing.patch b/meta-oe/recipes-extended/p7zip/files/0001-Fix-narrowing-errors-Wc-11-narrowing.patch index ae27517458..1f08d1603a 100644 --- a/meta-oe/recipes-extended/p7zip/files/0001-Fix-narrowing-errors-Wc-11-narrowing.patch +++ b/meta-oe/recipes-extended/p7zip/files/0001-Fix-narrowing-errors-Wc-11-narrowing.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From b6b1782af4aa7f9084d32e4144738dc2535c8d6f Mon Sep 17 00:00:00 2001 | 1 | From 653674e11872465dd5edf1c1e8413ea813d7e086 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 23 Apr 2018 23:07:21 -0700 | 3 | Date: Mon, 23 Apr 2018 23:07:21 -0700 |
| 4 | Subject: [PATCH] Fix narrowing errors -Wc++11-narrowing | 4 | Subject: [PATCH] Fix narrowing errors -Wc++11-narrowing |
| @@ -17,6 +17,7 @@ also reported here https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224930 | |||
| 17 | Upstream-Status: Pending | 17 | Upstream-Status: Pending |
| 18 | 18 | ||
| 19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 19 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 20 | |||
| 20 | --- | 21 | --- |
| 21 | CPP/Windows/ErrorMsg.cpp | 14 +++++++------- | 22 | CPP/Windows/ErrorMsg.cpp | 14 +++++++------- |
| 22 | 1 file changed, 7 insertions(+), 7 deletions(-) | 23 | 1 file changed, 7 insertions(+), 7 deletions(-) |
diff --git a/meta-oe/recipes-extended/p7zip/files/CVE-2017-17969.patch b/meta-oe/recipes-extended/p7zip/files/CVE-2017-17969.patch index 177d1455f8..9ba1078071 100644 --- a/meta-oe/recipes-extended/p7zip/files/CVE-2017-17969.patch +++ b/meta-oe/recipes-extended/p7zip/files/CVE-2017-17969.patch | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | p7zip: Fix CVE-2017-17969 | 1 | From 7f2da4f810b429ddb7afa0e252e3d02ced0eba87 Mon Sep 17 00:00:00 2001 |
| 2 | From: Radovan Scasny <radovan.scasny@siemens.com> | ||
| 3 | Date: Tue, 20 Feb 2018 12:08:13 +0100 | ||
| 4 | Subject: [PATCH] p7zip: Fix CVE-2017-17969 | ||
| 2 | 5 | ||
| 3 | [No upstream tracking] -- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888297 | 6 | [No upstream tracking] -- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=888297 |
| 4 | 7 | ||
| @@ -8,12 +11,18 @@ Compress/ShrinkDecoder.cpp: Heap-based buffer overflow | |||
| 8 | in the NCompress::NShrink::CDecoder::CodeReal method | 11 | in the NCompress::NShrink::CDecoder::CodeReal method |
| 9 | in 7-Zip before 18.00 and p7zip allows remote attackers | 12 | in 7-Zip before 18.00 and p7zip allows remote attackers |
| 10 | to cause a denial of service (out-of-bounds write) | 13 | to cause a denial of service (out-of-bounds write) |
| 11 | or potentially execute arbitrary code via a crafted ZIP archive. | 14 | or potentially execute arbitrary code via a crafted ZIP archive. |
| 12 | 15 | ||
| 13 | Upstream-Status: Backport [https://sourceforge.net/p/p7zip/bugs/_discuss/thread/0920f369/8316/attachment/CVE-2017-17969.patch] | 16 | Upstream-Status: Backport [https://sourceforge.net/p/p7zip/bugs/_discuss/thread/0920f369/8316/attachment/CVE-2017-17969.patch] |
| 14 | CVE: CVE-2017-17969 | 17 | CVE: CVE-2017-17969 |
| 15 | Signed-off-by: Radovan Scasny <radovan.scasny@siemens.com> | 18 | Signed-off-by: Radovan Scasny <radovan.scasny@siemens.com> |
| 16 | 19 | ||
| 20 | --- | ||
| 21 | CPP/7zip/Compress/ShrinkDecoder.cpp | 5 +++++ | ||
| 22 | 1 file changed, 5 insertions(+) | ||
| 23 | |||
| 24 | diff --git a/CPP/7zip/Compress/ShrinkDecoder.cpp b/CPP/7zip/Compress/ShrinkDecoder.cpp | ||
| 25 | index 80b7e67..5bb0559 100644 | ||
| 17 | --- a/CPP/7zip/Compress/ShrinkDecoder.cpp | 26 | --- a/CPP/7zip/Compress/ShrinkDecoder.cpp |
| 18 | +++ b/CPP/7zip/Compress/ShrinkDecoder.cpp | 27 | +++ b/CPP/7zip/Compress/ShrinkDecoder.cpp |
| 19 | @@ -121,7 +121,12 @@ HRESULT CDecoder::CodeReal(ISequentialInStream *inStream, ISequentialOutStream * | 28 | @@ -121,7 +121,12 @@ HRESULT CDecoder::CodeReal(ISequentialInStream *inStream, ISequentialOutStream * |
diff --git a/meta-oe/recipes-extended/p7zip/files/change_numMethods_from_bool_to_unsigned.patch b/meta-oe/recipes-extended/p7zip/files/change_numMethods_from_bool_to_unsigned.patch index edde525933..93eb0588c0 100644 --- a/meta-oe/recipes-extended/p7zip/files/change_numMethods_from_bool_to_unsigned.patch +++ b/meta-oe/recipes-extended/p7zip/files/change_numMethods_from_bool_to_unsigned.patch | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | fixes the below error | 1 | From 0820ef4b9238c1e39ae5bda32cc08cce3fd3ce89 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nisha Parrakat <Nisha.Parrakat@kpit.com> | ||
| 3 | Date: Wed, 26 May 2021 19:59:28 +0000 | ||
| 4 | Subject: [PATCH] fixes the below error | ||
| 2 | 5 | ||
| 3 | | ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp: In member function 'virtual LONG NArchive::NWim::CHandler::GetArchiveProperty(PROPID, PROPVARIANT*)': | 6 | | ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp: In member function 'virtual LONG NArchive::NWim::CHandler::GetArchiveProperty(PROPID, PROPVARIANT*)': |
| 4 | | ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:308:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17 | 7 | | ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:308:11: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17 |
| @@ -7,19 +10,25 @@ fixes the below error | |||
| 7 | | ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:318:9: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17 | 10 | | ../../../../CPP/7zip/Archive/Wim/WimHandler.cpp:318:9: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17 |
| 8 | | 318 | numMethods++; | 11 | | 318 | numMethods++; |
| 9 | 12 | ||
| 10 | |||
| 11 | use unsigned instead of bool | 13 | use unsigned instead of bool |
| 12 | Signed-off-by: Nisha Parrakat <Nisha.Parrakat@kpit.com> | 14 | Signed-off-by: Nisha Parrakat <Nisha.Parrakat@kpit.com> |
| 13 | 15 | ||
| 14 | Upstream-Status: Pending | 16 | Upstream-Status: Pending |
| 15 | --- ./CPP/7zip/Archive/Wim/WimHandler.cpp 2021-05-20 10:51:56.997402701 +0000 | ||
| 16 | +++ ./CPP/7zip/Archive/Wim/WimHandler.cpp 2021-05-20 10:52:16.665604125 +0000 | ||
| 17 | @@ -298,7 +298,7 @@ | ||
| 18 | 17 | ||
| 19 | AString res; | 18 | --- |
| 19 | CPP/7zip/Archive/Wim/WimHandler.cpp | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 20 | 21 | ||
| 22 | diff --git a/CPP/7zip/Archive/Wim/WimHandler.cpp b/CPP/7zip/Archive/Wim/WimHandler.cpp | ||
| 23 | index 27d3298..4ff5cfe 100644 | ||
| 24 | --- a/CPP/7zip/Archive/Wim/WimHandler.cpp | ||
| 25 | +++ b/CPP/7zip/Archive/Wim/WimHandler.cpp | ||
| 26 | @@ -298,7 +298,7 @@ STDMETHODIMP CHandler::GetArchiveProperty(PROPID propID, PROPVARIANT *value) | ||
| 27 | |||
| 28 | AString res; | ||
| 29 | |||
| 21 | - bool numMethods = 0; | 30 | - bool numMethods = 0; |
| 22 | + unsigned numMethods = 0; | 31 | + unsigned numMethods = 0; |
| 23 | for (unsigned i = 0; i < ARRAY_SIZE(k_Methods); i++) | 32 | for (unsigned i = 0; i < ARRAY_SIZE(k_Methods); i++) |
| 24 | { | 33 | { |
| 25 | if (methodMask & ((UInt32)1 << i | 34 | if (methodMask & ((UInt32)1 << i)) |
diff --git a/meta-oe/recipes-extended/p7zip/files/do_not_override_compiler_and_do_not_strip.patch b/meta-oe/recipes-extended/p7zip/files/do_not_override_compiler_and_do_not_strip.patch index b0a560fe98..2636e7f6f4 100644 --- a/meta-oe/recipes-extended/p7zip/files/do_not_override_compiler_and_do_not_strip.patch +++ b/meta-oe/recipes-extended/p7zip/files/do_not_override_compiler_and_do_not_strip.patch | |||
| @@ -1,4 +1,7 @@ | |||
| 1 | do not override compiler and do not strip | 1 | From b2aa209dfc5e59d6329b55b9764782334b63dbe8 Mon Sep 17 00:00:00 2001 |
| 2 | From: Raphael Freudiger <raphael.freudiger@siemens.com> | ||
| 3 | Date: Wed, 11 Feb 2015 09:11:47 +0100 | ||
| 4 | Subject: [PATCH] do not override compiler and do not strip | ||
| 2 | 5 | ||
| 3 | The default makefile sets the compiler to g++ or gcc. This leads to a wrong architecture when cross-compiling. | 6 | The default makefile sets the compiler to g++ or gcc. This leads to a wrong architecture when cross-compiling. |
| 4 | Remove the hardcoded compiler and just append the flags to CXX and CC. | 7 | Remove the hardcoded compiler and just append the flags to CXX and CC. |
| @@ -7,9 +10,14 @@ Upstream-Status: Pending | |||
| 7 | Signed-off-by: Raphael Freudiger <raphael.freudiger@siemens.com> | 10 | Signed-off-by: Raphael Freudiger <raphael.freudiger@siemens.com> |
| 8 | Reviewed-By: Pascal Bach <pascal.bach@siemens.com> | 11 | Reviewed-By: Pascal Bach <pascal.bach@siemens.com> |
| 9 | 12 | ||
| 10 | diff -Nurp p7zip_15.14.1_orig/makefile.machine p7zip_15.14.1/makefile.machine | 13 | --- |
| 11 | --- p7zip_15.14.1_orig/makefile.machine 2016-03-23 20:37:47.000000000 +0100 | 14 | makefile.machine | 4 +--- |
| 12 | +++ p7zip_15.14.1/makefile.machine 2016-06-17 15:33:39.720454477 +0200 | 15 | 1 file changed, 1 insertion(+), 3 deletions(-) |
| 16 | |||
| 17 | diff --git a/makefile.machine b/makefile.machine | ||
| 18 | index 9e34c34..e9244d9 100644 | ||
| 19 | --- a/makefile.machine | ||
| 20 | +++ b/makefile.machine | ||
| 13 | @@ -2,7 +2,7 @@ | 21 | @@ -2,7 +2,7 @@ |
| 14 | # makefile for Linux (x86, PPC, alpha ...) | 22 | # makefile for Linux (x86, PPC, alpha ...) |
| 15 | # | 23 | # |
