Open Bug 513112 Opened 16 years ago Updated 3 years ago

nsMultiplexInputStream allows inserting streams after Close();

Categories

(Core :: XPCOM, defect)

x86
All
defect

Tracking

()

People

(Reporter: WeirdAl, Unassigned)

References

()

Details

(Keywords: testcase)

Testcase: function run_test() { var multi = Components.classes["@mozilla.org/io/multiplex-input-stream;1"].createInstance(Components.interfaces.nsIMultiplexInputStream); var storage = Components.classes["@mozilla.org/storagestream;1"].createInstance(Components.interfaces.nsIStorageStream); storage.init(8, 8, null); storage.getOutputStream(0).write("Hello", 5); multi.close(); var pass = false; try { multi.insertStream(storage.newInputStream(0), 0); // should throw exception! } catch (e) { pass = true; } do_check_true(pass, "No exception thrown!"); }
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.