]> git.pld-linux.org Git - packages/mp4v2.git/commitdiff
- added nul patch (fix string termination check) auto/th/mp4v2-3.0.3.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 16 Jun 2018 09:08:04 +0000 (11:08 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 16 Jun 2018 09:08:04 +0000 (11:08 +0200)
mp4v2-nul.patch [new file with mode: 0644]
mp4v2.spec

diff --git a/mp4v2-nul.patch b/mp4v2-nul.patch
new file mode 100644 (file)
index 0000000..588b34e
--- /dev/null
@@ -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);
index bfb62f0780baf8e8bbcd3e1d47ddca692c941f31..fef09dea19266802e6f5a976218b537ea352dc33 100644 (file)
@@ -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
This page took 0.03604 seconds and 4 git commands to generate.