Closed
Bug 265068
Opened 19 years ago
Closed 19 years ago
null dereference in nsFormControlHelper::GetType (found by mangler)
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: guninski, Assigned: jst)
References
Details
(Keywords: fixed-aviary1.0, fixed1.7.5)
Attachments
(3 files)
118.77 KB,
text/html
|
Details | |
1.95 KB,
patch
|
Details | Diff | Splinter Review | |
1.54 KB,
patch
|
darin.moz
:
review+
dbaron
:
superreview+
asa
:
approval-aviary+
asa
:
approval1.7.5+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20040914 Firefox/0.10 found by mangler.cgi. will attach a testcase. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1083359104 (LWP 13105)] 0x419e9aa0 in nsFormControlHelper::GetType(nsIContent*) (aContent=0x89137c8) at nsFormControlHelper.cpp:359 359 return formControl->GetType(); (gdb) p formControl $1 = {mRawPtr = 0x0} Reproducible: Always Steps to Reproduce: check the testcase
Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
Confirming
Assignee: general → nobody
Blocks: Zalewski
Status: UNCONFIRMED → NEW
Component: Browser-General → Layout
Ever confirmed: true
Flags: blocking1.7.x?
Flags: blocking-aviary1.0?
QA Contact: general → core.layout
Comment 3•19 years ago
|
||
why is this a security bug? it's just a crash.
Comment 4•19 years ago
|
||
think we want to try for this on the branches before 1.0 ships
Flags: blocking1.7.x?
Flags: blocking1.7.x+
Flags: blocking-aviary1.0?
Flags: blocking-aviary1.0+
Assignee | ||
Comment 6•19 years ago
|
||
Assignee | ||
Comment 7•19 years ago
|
||
Assignee | ||
Comment 8•19 years ago
|
||
The underlying reason for this crash is that our parser code permits '\0' characters in identifiers, but our content creation and frame creation can't deal, and shouldn't need to, as it's never valid to have '\0' characters in tag/attribute names.
Assignee | ||
Updated•19 years ago
|
Attachment #162786 -
Flags: superreview?(dbaron)
Attachment #162786 -
Flags: review?(darin)
Comment 9•19 years ago
|
||
Comment on attachment 162786 [details] [diff] [review] diff -w of the above for review. r=darin
Attachment #162786 -
Flags: review?(darin) → review+
Updated•19 years ago
|
Attachment #162786 -
Flags: superreview?(dbaron) → superreview+
Comment 10•19 years ago
|
||
Comment on attachment 162786 [details] [diff] [review] diff -w of the above for review. a=asa for branches checkin.
Attachment #162786 -
Flags: approval1.7.x+
Attachment #162786 -
Flags: approval-aviary+
Assignee | ||
Comment 11•19 years ago
|
||
Fixed on the branches. Not a problem on the trunk.
Status: NEW → RESOLVED
Closed: 19 years ago
Keywords: fixed-aviary1.0,
fixed1.7.x
Resolution: --- → FIXED
Comment 12•19 years ago
|
||
> Don't allow embedded null characters in tag names. (In reply to comment #11) > Not a problem on the trunk. that's because bug 264956 fixed it on trunk, I guess; with a different patch of course, which also has approval, but's not checked in yet.
Reporter | ||
Updated•19 years ago
|
Group: security
![]() |
||
Comment 13•19 years ago
|
||
Note that the patch in bug 264956 is far more correct than this one (and covers more cases, for that matter). I would much prefer to see this patch backed out and this one go in. The wonders of hidden security bugs that people who know the code can't find. Gotta love them.
Assignee | ||
Comment 14•19 years ago
|
||
Done (bug remains fixed, by the patch in bug 264956).
![]() |
||
Comment 15•19 years ago
|
||
Thanks, jst!
You need to log in
before you can comment on or make changes to this bug.
Description
•