Closed
Bug 1265076
Opened 10 years ago
Closed 10 years ago
ArrayBufferInputStream violates readSegments contract
Categories
(Core :: Networking, defect)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla48
| Tracking | Status | |
|---|---|---|
| firefox48 | --- | fixed |
People
(Reporter: tromey, Assigned: tromey)
References
Details
(Whiteboard: [necko-active])
Attachments
(1 file)
While working on bug 1244227 I ran into a curious situation where
the network throttling code would sometimes end up sending the wrong
data to the child process.
After much debugging I found out that there is a bug in ArrayBufferInputStream:
https://dxr.mozilla.org/mozilla-central/source/netwerk/base/ArrayBufferInputStream.cpp#114
This always passes 0 as the aToOffset parameter to the nsWriteSegmentFun.
However that is wrong if this goes through the loop more than once.
| Assignee | ||
Comment 1•10 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/46853/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/46853/
Attachment #8741936 -
Flags: review?(mcmanus)
Comment 2•10 years ago
|
||
Comment on attachment 8741936 [details]
MozReview Request: Bug 1265076 - make ArrayBufferInputStream obey readSegments contract; r?mcmanus
https://reviewboard.mozilla.org/r/46853/#review44007
Attachment #8741936 -
Flags: review?(mcmanus) → review+
| Assignee | ||
Comment 3•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 5•10 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in
before you can comment on or make changes to this bug.
Description
•