Closed
Bug 200437
Opened 22 years ago
Closed 22 years ago
fix assertion in GetCookie()
Categories
(Core :: Networking: Cookies, defect)
Core
Networking: Cookies
Tracking
()
VERIFIED
FIXED
People
(Reporter: dwitte, Assigned: dwitte)
Details
Attachments
(1 file, 1 obsolete file)
|
4.96 KB,
patch
|
dwitte
:
review+
dwitte
:
superreview+
|
Details | Diff | Splinter Review |
this one was introduced ages ago, at some point after the cookie string rewrite.
CharAt is asserting if you try to read off the end of the string, so we just
need to shift that call to after the length check. it looked ugly so i
refactored into a helper function, consistent with the parser stuff, to look nicer.
thanks to mvl for spotting these assertions :)
| Assignee | ||
Comment 1•22 years ago
|
||
| Assignee | ||
Updated•22 years ago
|
Attachment #119268 -
Flags: superreview?(darin)
Attachment #119268 -
Flags: review?(mvl)
Comment 2•22 years ago
|
||
Comment on attachment 119268 [details] [diff] [review]
fix
sr=darin
Attachment #119268 -
Flags: superreview?(darin) → superreview+
Updated•22 years ago
|
Attachment #119268 -
Flags: review?(mvl) → review+
| Assignee | ||
Comment 3•22 years ago
|
||
now with updated comment, per mvl's request.
| Assignee | ||
Updated•22 years ago
|
Attachment #119268 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•22 years ago
|
||
Comment on attachment 119274 [details] [diff] [review]
fix 2
carrying over r/sr.
Attachment #119274 -
Flags: superreview+
Attachment #119274 -
Flags: review+
| Assignee | ||
Comment 5•22 years ago
|
||
fixed-on-trunk @ 0117 by Neil. thanks!
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
If someone has a simple case w/ some output that shows an assertion happening
(then going away post-fix), if you could paste that in here and VERIFIED/FIXED,
that would be great.
Keywords: verifyme
QA Contact: cookieqa → ashishbhatt
Comment 7•22 years ago
|
||
Without that patch, I see the assertions while running dwitte's TestCookie.cpp.
###!!! ASSERTION: |CharAt| out-of-range: 'i<Length()', file
../../dist/include/string/nsASingleFragmentString.h, line 197
Break: at file ../../dist/include/string/nsASingleFragmentString.h, line 197
With a current cvs trunk build, I don't see the assertions while running the
same file. (nothing to paste here :) )
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•