[packages/mp4v2] - added nul patch (fix string termination check)

qboosh qboosh at pld-linux.org
Sat Jun 16 11:06:46 CEST 2018


commit 6e4672f7fb9a05d67f5a95452cc02eda40a11735
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 16 11:08:04 2018 +0200

    - added nul patch (fix string termination check)

 mp4v2-nul.patch | 11 +++++++++++
 mp4v2.spec      |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/mp4v2.spec b/mp4v2.spec
index bfb62f0..fef09de 100644
--- a/mp4v2.spec
+++ b/mp4v2.spec
@@ -10,6 +10,7 @@ Source0:	https://github.com/TechSmith/mp4v2/archive/Release-MP4v2-%{version}/%{n
 # Source0-md5:	c12fd37e66e64902f24c0677ba577a11
 Patch0:		%{name}-export.patch
 Patch1:		%{name}-doc.patch
+Patch2:		%{name}-nul.patch
 URL:		https://github.com/TechSmith/mp4v2
 BuildRequires:	help2man
 BuildRequires:	libstdc++-devel
@@ -76,6 +77,7 @@ Ten pakiet zawiera statyczną wersję biblioteki MP4v2.
 %setup -q -n %{name}-Release-MP4v2-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 # "txt" build fails without this directory
 mkdir -p doc/articles/txt
diff --git a/mp4v2-nul.patch b/mp4v2-nul.patch
new file mode 100644
index 0000000..588b34e
--- /dev/null
+++ b/mp4v2-nul.patch
@@ -0,0 +1,11 @@
+--- mp4v2-Release-MP4v2-3.0.3.0/src/rtphint.cpp.orig	2017-04-11 17:50:56.000000000 +0200
++++ mp4v2-Release-MP4v2-3.0.3.0/src/rtphint.cpp	2018-06-16 10:48:21.631875614 +0200
+@@ -339,7 +339,7 @@
+                 pSlash = strchr(pSlash, '/');
+                 if (pSlash != NULL) {
+                     pSlash++;
+-                    if (pSlash != '\0') {
++                    if (*pSlash != '\0') {
+                         length = (uint32_t)strlen(pRtpMap) - (pSlash - pRtpMap);
+                         *ppEncodingParams = (char *)MP4Calloc(length + 1);
+                         strncpy(*ppEncodingParams, pSlash, length);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mp4v2.git/commitdiff/6e4672f7fb9a05d67f5a95452cc02eda40a11735



More information about the pld-cvs-commit mailing list