Open Bug 347660 Opened 18 years ago Updated 3 years ago

nsBufferedOutputStream::WriteSegments doesn't handle the reader returning zero

Categories

(Core :: Networking, defect, P5)

defect

Tracking

()

People

(Reporter: Biesinger, Unassigned)

References

()

Details

(Whiteboard: [necko-backlog])

Per http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsIOutputStream.idl#60, the reader for writeSegments is allowed to return success and zero bytes. But, the buffered output stream does not handle that, it looks like it would go into an infinite loop in that case.

This is a quite relevant case since when used via writeFrom, this would hang at EOF (when the input stream would return zero).
Whiteboard: [necko-backlog]
Severity: critical → normal
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3

Bulk-downgrade of unassigned, untouched DOM/Storage bug's priority.

If you have reason to believe, this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: P3 → P5
You need to log in before you can comment on or make changes to this bug.