Closed Bug 9847 Opened 26 years ago Closed 26 years ago

[malloc] memory allocation problems - html/forms

Categories

(Core :: Layout: Form Controls, defect, P3)

x86
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: chofmann, Assigned: pollmann)

References

Details

[malloc] memory allocation problems - html/forms check bug 8227 for more details on what needs to be done to this code\ s:/mozilla/layout/html/forms/src/nsSelectControlFrame.cpp Deref-error: "initData", line 442 Deref-error: "initData", line 445
Summary: [malloc] memory allocation problems - html/forms
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Just checked in a fix. This is a code level fix and can not be verified by running the program. To verify the fix visit this url and notice that on line 442, the line contains "if (initData) {" http://lxr.mozilla.org/seamonkey/source/layout/html/forms/src/nsSelectControlFrame.cpp#442 This checks for a valid pointer before dereferencing it, which eliminates the bug.
Status: RESOLVED → VERIFIED
looks good to me. (thanks for the detailed comments)
Blocks: 8227
You need to log in before you can comment on or make changes to this bug.