Closed
Bug 51088
Opened 25 years ago
Closed 25 years ago
"Rewrap" hits infinite nsAReadableString assert loop
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
VERIFIED
FIXED
M18
People
(Reporter: akkzilla, Assigned: akkzilla)
Details
(Keywords: crash)
Send yourself a message with long lines, by turning off "wrap long lines" then
typing some very long lines. Read the message in mozilla, reply to it,
highlight the lines, and do "Rewrap".
You hit one of those infinite assert loops:
###!!! ASSERTION: Infinite loop: can't advance a readable iterator beyond the
end of a string: 'one_hop>0', file ../../dist/include/nsAReadableString.h, line
209
Assignee | ||
Comment 1•25 years ago
|
||
Requesting nsbeta3 since it's a crash (well, a hang, which is essentially the
same thing).
Assignee | ||
Comment 2•25 years ago
|
||
Here's the fix. Very safe.
< while (aOutString[i] == '\r' || aOutString[i] == '\n')
---
> while (i < length && (aInString[i] == '\r' || aInString[i] == '\n'))
Whiteboard: TRIVIAL FIX IN HAND
Comment 3•25 years ago
|
||
That looks like the right fix to me. r=scc if you need it.
Assignee | ||
Comment 4•25 years ago
|
||
Fixed (checked in in conjunction with a related mail/news bug).
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Whiteboard: TRIVIAL FIX IN HAND
Target Milestone: --- → M18
You need to log in
before you can comment on or make changes to this bug.
Description
•