[packages/xevd] - added dangling-pointer fix from git
qboosh
qboosh at pld-linux.org
Sun Apr 14 11:09:31 CEST 2024
commit 66cc22ea955fbdc18a362083a03f239c36df60a5
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 14 10:02:38 2024 +0200
- added dangling-pointer fix from git
xevd-dangling-pointer.patch | 31 +++++++++++++++++++++++++++++++
xevd.spec | 2 ++
2 files changed, 33 insertions(+)
---
diff --git a/xevd.spec b/xevd.spec
index cda1571..1fe7c66 100644
--- a/xevd.spec
+++ b/xevd.spec
@@ -15,6 +15,7 @@ Source0: https://github.com/mpeg5/xevd/archive/v%{gitref}/%{name}-%{gitref}.tar.
# Source0-md5: d1642df4b69196430e669d6b278e73d7
Patch0: %{name}-string.patch
Patch1: %{name}-link.patch
+Patch2: %{name}-dangling-pointer.patch
URL: https://github.com/mpeg5/xevd
BuildRequires: cmake >= 3.5
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -128,6 +129,7 @@ Statyczna biblioteka XEVD (profil Baseline).
%setup -q -n %{name}-%{gitref}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
echo "v%{version}" > version.txt
diff --git a/xevd-dangling-pointer.patch b/xevd-dangling-pointer.patch
new file mode 100644
index 0000000..c20654b
--- /dev/null
+++ b/xevd-dangling-pointer.patch
@@ -0,0 +1,31 @@
+From 13b86a74e26df979dd1cc3a1cb19bf1ac828e197 Mon Sep 17 00:00:00 2001
+From: Dawid Kozinski <d.kozinski at samsung.com>
+Date: Mon, 11 Mar 2024 11:28:32 +0100
+Subject: [PATCH] Removed code that caused build error for windows (dangling
+ pointer)
+
+mctx->pps_dra_params was initialised by pointer taken from local variable, but it wasn't used anywhere
+---
+ src_main/xevdm.c | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/src_main/xevdm.c b/src_main/xevdm.c
+index 1d212f9..c3e0aa5 100644
+--- a/src_main/xevdm.c
++++ b/src_main/xevdm.c
+@@ -3329,7 +3329,6 @@ int xevd_apply_filter(XEVD_CTX *ctx, XEVD_IMGB *imgb)
+ // Assigned effective DRA controls as specified by PPS
+ xevd_assert((pps_dra_id > -1) && (pps_dra_id < 32) && ((g_dra_control + pps_dra_id)->signal_dra_flag == 1));
+ xevd_mcpy(&(g_dra_control_effective.signalled_dra), (g_dra_control + pps_dra_id), sizeof(SIG_PARAM_DRA));
+- mctx->pps_dra_params = (void *)&(g_dra_control_effective.signalled_dra);
+
+ if (g_dra_control_effective.flag_enabled)
+ {
+@@ -3735,7 +3734,6 @@ int xevd_decode(XEVD id, XEVD_BITB * bitb, XEVD_STAT * stat)
+ {
+ memcpy(&(dra_control_effective.signalled_dra), dra_control + pps_dra_id, sizeof(SIG_PARAM_DRA));
+ dra_control_effective.flag_enabled = 1;
+- mctx->pps_dra_params = &(dra_control_effective.signalled_dra);
+ }
+ else
+ {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/xevd.git/commitdiff/66cc22ea955fbdc18a362083a03f239c36df60a5
More information about the pld-cvs-commit
mailing list