]> git.pld-linux.org Git - packages/mp4v2.git/blob - mp4v2-nul.patch
- added nul patch (fix string termination check)
[packages/mp4v2.git] / mp4v2-nul.patch
1 --- mp4v2-Release-MP4v2-3.0.3.0/src/rtphint.cpp.orig    2017-04-11 17:50:56.000000000 +0200
2 +++ mp4v2-Release-MP4v2-3.0.3.0/src/rtphint.cpp 2018-06-16 10:48:21.631875614 +0200
3 @@ -339,7 +339,7 @@
4                  pSlash = strchr(pSlash, '/');
5                  if (pSlash != NULL) {
6                      pSlash++;
7 -                    if (pSlash != '\0') {
8 +                    if (*pSlash != '\0') {
9                          length = (uint32_t)strlen(pRtpMap) - (pSlash - pRtpMap);
10                          *ppEncodingParams = (char *)MP4Calloc(length + 1);
11                          strncpy(*ppEncodingParams, pSlash, length);
This page took 0.046124 seconds and 4 git commands to generate.