Closed
Bug 851982
Opened 11 years ago
Closed 11 years ago
Assertion failure in nsUnicharStreamLoader::WriteSegmentFun with ISO-2022-JP (#2)
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
FIXED
mozilla24
Tracking | Status | |
---|---|---|
firefox23 | --- | wontfix |
firefox24 | --- | fixed |
firefox-esr17 | --- | unaffected |
b2g18 | --- | unaffected |
b2g-v1.1hd | --- | unaffected |
b2g-v1.2 | --- | unaffected |
People
(Reporter: jruderman, Assigned: emk)
References
Details
(Keywords: assertion, sec-moderate, testcase, Whiteboard: [adv-main24+])
Attachments
(3 files)
70 bytes,
text/html
|
Details | |
19.45 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
3.26 KB,
patch
|
smontagu
:
review+
|
Details | Diff | Splinter Review |
Assertion failure: ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))), at netwerk/base/src/nsUnicharStreamLoader.cpp:218 Same assertion as bug 843434, which Josh fixed last week.
Assignee | ||
Comment 1•11 years ago
|
||
mErrBehavior check is needed here, too. https://mxr.mozilla.org/mozilla-central/source/intl/uconv/ucvja/nsJapaneseToUnicode.cpp#506 And we should audit the all occurrence of |goto error2;|.
Updated•11 years ago
|
Keywords: sec-moderate
Comment 3•11 years ago
|
||
also this is happing on realworld sites see my bug 883083
Comment 4•11 years ago
|
||
:emk or josh, can you supply a patch here?
Assignee | ||
Comment 5•11 years ago
|
||
Attachment #765062 -
Flags: review?(smontagu)
Assignee | ||
Comment 6•11 years ago
|
||
Attachment #765064 -
Flags: review?(smontagu)
Assignee | ||
Comment 7•11 years ago
|
||
Although the assertions are debug only, this change is web-visible because of TextDecoder. The test should catch all possible cases. I commented out |SimpleTest.expectAssertions(0, 2);| line because testharness doesn't define SimpleTest.
Assignee | ||
Comment 8•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=11e9dbc16257
Updated•11 years ago
|
Attachment #765062 -
Flags: review?(smontagu) → review+
Updated•11 years ago
|
Attachment #765064 -
Flags: review?(smontagu) → review+
Assignee | ||
Comment 9•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/84855cdd91da https://hg.mozilla.org/integration/mozilla-inbound/rev/d1d09117491f
Status: NEW → ASSIGNED
Flags: in-testsuite+
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/84855cdd91da https://hg.mozilla.org/mozilla-central/rev/d1d09117491f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
status-firefox24:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Reporter | ||
Comment 11•11 years ago
|
||
> I commented out |SimpleTest.expectAssertions(0, 2);| line because testharness
> doesn't define SimpleTest.
Which test harness does this test run in?
Assignee | ||
Comment 12•11 years ago
|
||
dom/encoding/test/test_TextDecoder.html.
Comment 13•11 years ago
|
||
Was this bug present in Firefox 23 or earlier?
Updated•11 years ago
|
Flags: needinfo?(VYV03354)
Assignee | ||
Comment 14•11 years ago
|
||
Probably Firefox 20 or later. This is a regression from bug 638379.
Flags: needinfo?(VYV03354)
Updated•11 years ago
|
Updated•11 years ago
|
Updated•11 years ago
|
Updated•10 years ago
|
Group: core-security
You need to log in
before you can comment on or make changes to this bug.
Description
•