Merge pull request #209919 from LeSuisse/radare2-CVE-2022-4843

radare2: apply patch for CVE-2022-4843
This commit is contained in:
Jörg Thalheim 2023-01-10 00:07:15 +01:00 committed by GitHub
commit c4e1db0e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, buildPackages
, pkg-config
, meson
@ -56,6 +57,14 @@ stdenv.mkDerivation rec {
hash = "sha256-9bDwtMNru7tG0L735y+Vrcg7Htk/TV9SVZn7WP4Ap4c=";
};
patches = [
(fetchpatch {
name = "CVE-2022-4843.patch";
url = "https://github.com/radareorg/radare2/commit/842f809d4ec6a12af2906f948657281c9ebc8a24.patch";
sha256 = "sha256-asEXW9Ox48w9WQhOA9tleXIvynIjsWb6ItKmFTojgbQ=";
})
];
preBuild = ''
pushd ../libr/arch/p/arm/v35arm64
cp -r ${arm64} arch-arm64