Closed
Bug 1020379
Opened 10 years ago
Closed 10 years ago
[RTSP] Potential infinite loop and compile warnings in ARTPConnection.cpp
Categories
(Firefox OS Graveyard :: RTSP, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.0 S4 (20june)
People
(Reporter: ethan, Assigned: ethan)
Details
(Whiteboard: [p=1])
Attachments
(2 files, 2 obsolete files)
1.21 KB,
patch
|
Details | Diff | Splinter Review | |
3.12 KB,
patch
|
Details | Diff | Splinter Review |
We found a logical error from this changeset. https://hg.mozilla.org/mozilla-central/rev/7770095ccedf In ARTPConnection.cpp (line 248): for (uint16_t port = start; port < 65536; port += 2) { ... } The for-loop local variable "port" was changed from "unsigned" to "uint16_t" carelessly. This change made the end condition being always true, which means this for-loop could be potentially infinite. Although it's almost impossible to run into this logical error (e.g. all the UDP sockets are occupied), we should fix it to avoid the potential risk. In the meanwhile, I found several compile warnings around this changeset. I will fix them as well in this bug.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → ettseng
Status: NEW → ASSIGNED
Whiteboard: [p=1]
Target Milestone: --- → 2.0 S4 (20june)
Assignee | ||
Updated•10 years ago
|
Summary: [RTSP] Follow-up of 996535 - Some logical error and compile warnings → [RTSP] Follow-up of 996535 - Logical error and compile warnings in ARTPConnection.cpp
Assignee | ||
Updated•10 years ago
|
Summary: [RTSP] Follow-up of 996535 - Logical error and compile warnings in ARTPConnection.cpp → [RTSP] Follow-up of 996535 - Potential infinite loop and compile warnings in ARTPConnection.cpp
Assignee | ||
Updated•10 years ago
|
Summary: [RTSP] Follow-up of 996535 - Potential infinite loop and compile warnings in ARTPConnection.cpp → [RTSP] Potential infinite loop and compile warnings in ARTPConnection.cpp
Assignee | ||
Comment 1•10 years ago
|
||
Fixed the issue mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1018288#c2.
Attachment #8435557 -
Flags: review?(sworkman)
Assignee | ||
Comment 2•10 years ago
|
||
This patch fixes the following warnings: - ARTPConnection.cpp:284: warning: comparison between signed and unsigned integer expressions - ARTSPConnection.h:91: warning: 'android::ARTSPConnection::mSocket' will be initialized after ARTSPConnection.h:88: warning: 'int32_t android::ARTSPConnection::mConnectionID' ARTSPConnection.cpp:54: warning: when initialized here RTSPSource.o - RTSPConnectionHandler.h:44:1: warning: "LOGI" redefined
Attachment #8435559 -
Flags: review?(sworkman)
Assignee | ||
Updated•10 years ago
|
Attachment #8435557 -
Attachment description: fix-infinite-loop.patch → Fix potential infinite loop
Updated•10 years ago
|
Attachment #8435557 -
Flags: review?(sworkman) → review+
Updated•10 years ago
|
Attachment #8435559 -
Flags: review?(sworkman) → review+
Comment 3•10 years ago
|
||
Thanks for taking care of this Ethan!
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Steve Workman [:sworkman] from comment #3) > Thanks for taking care of this Ethan! You are welcome, Steve. I am glad I can help!
Assignee | ||
Comment 5•10 years ago
|
||
The result of Try server looks good. https://tbpl.mozilla.org/?tree=Try&rev=ca63435dae22 Request to check in both patches.
Keywords: checkin-needed
Assignee | ||
Comment 6•10 years ago
|
||
Refresh commit message "r=sworkman".
Attachment #8435557 -
Attachment is obsolete: true
Assignee | ||
Comment 7•10 years ago
|
||
Refresh commit message "r=sworkman".
Attachment #8435559 -
Attachment is obsolete: true
Assignee | ||
Comment 8•10 years ago
|
||
Sorry I forgot to refresh commit messages before requesting to check in. Please check in using the updated patches: attachment 8435994 [details] [diff] [review] and 8435996.
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/cea5bf661931 https://hg.mozilla.org/integration/b2g-inbound/rev/722c6e0845eb
Keywords: checkin-needed
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/cea5bf661931 https://hg.mozilla.org/mozilla-central/rev/722c6e0845eb
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•