Bug 1372467 - Stop at end of line after unknown attribute. r=bwc
authorNils Ohlmeier [:drno] <drno@ohlmeier.org>
Mon, 12 Jun 2017 22:45:35 -0700
changeset 418937 55330a883a17af8ae34a5fc90f81fd7b916b500e
parent 418936 4d75ebaf1ba3bf009f5e5972c2cf381bfe38f255
child 418938 98d3f0b9791d22f30da5aa9824209118c22a3d03
push id7566
push usermtabara@mozilla.com
push dateWed, 02 Aug 2017 08:25:16 +0000
treeherdermozilla-beta@86913f512c3c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbwc
bugs1372467
milestone56.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1372467 - Stop at end of line after unknown attribute. r=bwc MozReview-Commit-ID: 5tg6gKbQfHy
media/webrtc/signaling/src/sdp/sipcc/sdp_attr.c
--- a/media/webrtc/signaling/src/sdp/sipcc/sdp_attr.c
+++ b/media/webrtc/signaling/src/sdp/sipcc/sdp_attr.c
@@ -1348,17 +1348,22 @@ sdp_result_e sdp_parse_attr_fmtp (sdp_t 
                                        &result1);
           if (result1 != SDP_SUCCESS) {
             fmtp_ptr = sdp_getnextstrtok(fmtp_ptr, tmp, sizeof(tmp), " \t", &result1);
             if (result1 != SDP_SUCCESS) {
               // hmmm, no ; or spaces or tabs; continue on
             }
           }
         }
-        fmtp_ptr++;
+        if (*fmtp_ptr == '\n') {
+          // reached end of line, stop parsing
+          done = TRUE;
+        } else {
+          fmtp_ptr++;
+        }
       } else {
           done = TRUE;
       }
     } /* while  - done loop*/
 
     if (codec_info_found) {
 
         if (sdp_p->debug_flag[SDP_DEBUG_TRACE]) {