[packages/libprelude] - added patch to remove invalid cast from negative integer to pointer

qboosh qboosh at pld-linux.org
Thu Sep 19 20:47:40 CEST 2024


commit 42af5c1de5361481f8cae86d0c679048257fc5ca
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Sep 19 20:50:40 2024 +0200

    - added patch to remove invalid cast from negative integer to pointer

 libprelude-cast.patch | 11 +++++++++++
 libprelude.spec       |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/libprelude.spec b/libprelude.spec
index 73ad128..8dfbf2b 100644
--- a/libprelude.spec
+++ b/libprelude.spec
@@ -23,6 +23,7 @@ Source0:	https://www.prelude-siem.org/attachments/download/1395/%{name}-%{versio
 Patch0:		python-install.patch
 Patch1:		%{name}-lua.patch
 Patch2:		gtk-doc-1.32.patch
+Patch3:		%{name}-cast.patch
 URL:		https://www.prelude-siem.org/
 BuildRequires:	autoconf >= 2.59
 BuildRequires:	automake >= 1:1.9
@@ -229,6 +230,7 @@ Wiązania języka Ruby do libprelude.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 # in case swig regeneration is required:
 #%{__rm} bindings/python/{_prelude.cxx,prelude.py}
diff --git a/libprelude-cast.patch b/libprelude-cast.patch
new file mode 100644
index 0000000..9c338a4
--- /dev/null
+++ b/libprelude-cast.patch
@@ -0,0 +1,11 @@
+--- libprelude-5.2.0/src/idmef-class.c.orig	2020-09-09 16:30:32.666000000 +0200
++++ libprelude-5.2.0/src/idmef-class.c	2024-09-19 19:31:33.449921470 +0200
+@@ -161,7 +161,7 @@ const char **idmef_class_get_child_attri
+ 
+         ret = is_child_valid(class, child);
+         if ( ret < 0 )
+-                return ret;
++                return NULL;
+ 
+         return object_data[class].children_list[child].attributes;
+ }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libprelude.git/commitdiff/42af5c1de5361481f8cae86d0c679048257fc5ca



More information about the pld-cvs-commit mailing list