Open
Bug 294599
Opened 19 years ago
Updated 3 years ago
Rebinding a nsScannerSubstring using a substring made out of its own iterators fails
Categories
(Core :: DOM: HTML Parser, defect, P5)
Tracking
()
NEW
People
(Reporter: mrbkap, Unassigned)
Details
Over in bug 208869, I needed to remove the first couple of characters from a nsScannerSubstring. To do so I had: nsSubstring::const_iterator start, end; theString.BeginReading(start); theString.EndReading(end); // manipulate start to point to other places in the string. theString.Rebind(Substring(start, end)); However, this resulted in a corrupted theString, because the memory pointed to by the substring was free'd by the time the assignment happened. (The obvious workaround was to have: nsAutoString chopped(Substring(start, end)); theString.Rebind(chopped); Note that I was calling through CTextToken::Bind(), so I couldn't use the other version of Rebind, which seems to handle this case).
Updated•15 years ago
|
Assignee: parser → nobody
QA Contact: mrbkap → parser
Comment 1•3 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority and severity.
If you have reason to believe this is wrong, please write a comment and ni :jstutte.
Severity: normal → S4
Priority: -- → P5
You need to log in
before you can comment on or make changes to this bug.
Description
•