Closed Bug 17320 Opened 25 years ago Closed 25 years ago

Free mismatched memory in nsImageMap.cpp

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: David.R.Gardiner, Assigned: buster)

Details

Attachments

(1 file)

[E] FMM: Freeing mismatched memory in delete(void *) {1 occurrence} Address 0x08fbe9b0 points into a HeapAlloc'd block in heap 0x037a0000 Location of free attempt delete(void *) [dbgdel.cpp:35] Area::ParseCoords(nsString const&) [nsImageMap.cpp:290] { char* cp = aSpec.ToNewCString(); mCoords = lo_parse_coord_list(cp, &mNumCoords); => delete[] cp; } void Area::ToHTML(nsString& aResult) nsImageMap::AddArea(nsIContent *) [nsImageMap.cpp:855] nsImageMap::UpdateAreas(void) [nsImageMap.cpp:802] nsImageMap::Init(nsIDOMHTMLMapElement *) [nsImageMap.cpp:740] nsImageFrame::GetImageMap(void) [nsImageFrame.cpp:579] nsImageFrame::GetCursor(nsIPresContext&,nsPoint&,int&) [nsImageFrame.cpp:807] nsEventStateManager::UpdateCursor(nsIPresContext&,nsPoint&,nsIFrame *,nsEventStatus&) [nsEventStateManager.cpp:603] nsEventStateManager::PreHandleEvent(nsIPresContext&,nsGUIEvent *,nsIFrame *,nsEventStatus&,nsIView *) [nsEventStateManager.cpp:164] PresShell::HandleEvent(nsIView *,nsGUIEvent *,nsEventStatus&) [nsPresShell.cpp:2188] Should not use []. -dave
Attached patch Fix FMM in nsImageMap.cpp (deleted) — Splinter Review
Assignee: rickg → pnunn
I think this is yours. Please correct me if I'm mistaken.
Assignee: pnunn → kipp
Rick: This is in mozilla/layout/html/base/src. Maybe Kipp?
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Thanks for the bug report; I fixed it slightly differently...
Since this is a code fix, I don't have the ability to verify this as a QA contact. Kipp, could you please mark this as fixed.
Status: RESOLVED → VERIFIED
SPAM. HTML Element component deprecated, changing component to Layout. See bug 88132 for details.
Component: HTML Element → Layout
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: