Closed
Bug 844929
Opened 11 years ago
Closed 11 years ago
Accept numeric parameters > UINT_MAX in SDP o-lines
Categories
(Core :: WebRTC: Signaling, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla22
People
(Reporter: ekr, Assigned: ehugg)
Details
(Whiteboard: [webrtc][blocking-webrtc+][qa-])
Attachments
(1 file, 4 obsolete files)
6.18 KB,
patch
|
ekr
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Comment 1•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Assignee: nobody → ekr
Reporter | ||
Comment 2•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Attachment #717948 -
Attachment is obsolete: true
Reporter | ||
Comment 3•11 years ago
|
||
Reporter | ||
Updated•11 years ago
|
Attachment #717996 -
Attachment is obsolete: true
Reporter | ||
Updated•11 years ago
|
Attachment #718003 -
Flags: review?(ethanhugg)
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 718003 [details] [diff] [review] Allow SDP session ids > MAX_UINT Review of attachment 718003 [details] [diff] [review]: ----------------------------------------------------------------- ::: media/webrtc/signaling/src/sipcc/core/sdp/sdp_token.c @@ +65,5 @@ > + > + if (ptr[end] == '\0') > + return SDP_SUCCESS; > + > + return SDP_INVALID_PARAMETER; The spec says this: The numeric value of the session id and version in the o line MUST be representable with a 64 bit signed integer. The initial value of the version MUST be less than (2**62)-1, to avoid rollovers. Should we be doing a strtoul instead and checking against this max value here?
Attachment #718003 -
Flags: review?(ethanhugg) → review+
Comment 5•11 years ago
|
||
(In reply to Ethan Hugg [:ehugg] from comment #4) > Should we be doing a strtoul instead and checking against this max value > here? A long is 32 bits on Windows. That is one of the many problems this patch is fixing. I'm not against being stricter in what we accept, but it would probably mean writing our own string->int64 function (not that this is difficult, since we don't really care about speed).
Updated•11 years ago
|
Priority: -- → P2
Whiteboard: [webrtc][blocking-webrtc+]
Reporter | ||
Comment 6•11 years ago
|
||
Since this is SIPCC, we can use PR_sscanf, which seems to support PRUint64. Can you take this?
Assignee: ekr → ethanhugg
Assignee | ||
Comment 7•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #718003 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #718495 -
Flags: review?(ekr)
Reporter | ||
Comment 8•11 years ago
|
||
Comment on attachment 718495 [details] [diff] [review] Accept numeric parameters > UINT_MAX in SDP o-lines Review of attachment 718495 [details] [diff] [review]: ----------------------------------------------------------------- Would it make sense to make these strings by string concatenation so we don't have so much cut-and-paste.
Attachment #718495 -
Flags: review?(ekr) → review+
Assignee | ||
Comment 9•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #718495 -
Attachment is obsolete: true
Reporter | ||
Updated•11 years ago
|
Attachment #718515 -
Flags: review+
Assignee | ||
Comment 10•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a1d01526d344
Comment 11•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a1d01526d344
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
Updated•11 years ago
|
Flags: in-testsuite+
Whiteboard: [webrtc][blocking-webrtc+] → [webrtc][blocking-webrtc+][qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•