Add udp2raw ASan-disabling patch

This commit is contained in:
Charlotte Van Petegem 2023-06-07 13:24:33 +02:00
parent 84707eb1a7
commit 576da79ba7
No known key found for this signature in database
GPG key ID: 019E764B7184435A

13
patches/236439.patch Normal file
View file

@ -0,0 +1,13 @@
diff --git a/pkgs/tools/networking/udp2raw/default.nix b/pkgs/tools/networking/udp2raw/default.nix
index 7bbba969ef1a4..b6466ce0be57b 100644
--- a/pkgs/tools/networking/udp2raw/default.nix
+++ b/pkgs/tools/networking/udp2raw/default.nix
@@ -29,6 +29,8 @@ stdenv.mkDerivation rec {
postPatch = ''
echo 'const char *gitversion = "${version}";' > git_version.h
+ # Adress sanitization crashes the application, reported upstream at https://github.com/wangyu-/udp2raw/issues/474
+ substituteInPlace CMakeLists.txt --replace "sanitize=address," "sanitize="
'';
nativeBuildInputs = [