summarylogtreecommitdiffstats
path: root/fix_missing_ptr_deref.patch
blob: 790ff93d5825a1fdb09055bf5d446b2c9e85bc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Naur src.original/rtphint.cpp src/rtphint.cpp
--- src.original/rtphint.cpp	2017-07-14 17:54:58.230117921 +0200
+++ src/rtphint.cpp	2017-07-14 17:58:57.441883719 +0200
@@ -345,7 +345,7 @@
                 pSlash = strchr(pSlash, '/');
                 if (pSlash != NULL) {
                     pSlash++;
-                    if (pSlash != '\0') {
+                    if (*pSlash != '\0') {
                         length = strlen(pRtpMap) - (pSlash - pRtpMap);
                         *ppEncodingParams = (char *)MP4Calloc(length + 1);
                         strncpy(*ppEncodingParams, pSlash, length);