Closed
Bug 25092
Opened 26 years ago
Closed 26 years ago
UMR in nsEventStateManager::BeginTrackingDragGesture()
Categories
(Core :: XUL, defect, P3)
Tracking
()
VERIFIED
FIXED
M14
People
(Reporter: kinmoz, Assigned: mikepinkerton)
Details
In purify, I'm seeing an Uninitialized Memory Read warning in
nsEventStateManager::BeginTrackingDragGesture().
To reproduce the problem, all you have to do is start the browser and click in
the URL bar.
Here are the purify warnings with the stack traces:
[W] UMR: Uninitialized memory read in
nsEventStateManager::BeginTrackingDragGesture(nsGUIEvent *,nsIFrame *) {1
occurrence}
Reading 4 bytes from 0x0013f128 (4 bytes at 0x0013f128 uninitialized)
Address 0x0013f128 points into a thread's stack
Address 0x0013f128 is 8 bytes past the start of local variable 'event'
in nsEnderEventListener::DispatchMouseEvent(nsIDOMMouseEvent *,int)
Thread ID: 0x111
Error location
nsEventStateManager::BeginTrackingDragGesture(nsGUIEvent *,nsIFrame
*) [nsEventStateManager.cpp:591]
nsEventStateManager::PreHandleEvent(nsIPresContext *,nsGUIEvent
*,nsIFrame *,nsEventStatus *,nsIView *) [nsEventStateManager.cpp:398]
nsEnderEventListener::DispatchMouseEvent(nsIDOMMouseEvent *,int)
[nsGfxTextControlFrame.cpp:3608]
nsEnderEventListener::MouseDown(nsIDOMEvent *)
[nsGfxTextControlFrame.cpp:3690]
nsEventListenerManager::HandleEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsEventListenerManager.cpp:740]
nsDocument::HandleDOMEvent(nsIPresContext *,nsEvent *,nsIDOMEvent *
*,UINT,nsEventStatus *) [nsDocument.cpp:2419]
nsHTMLHtmlElement::HandleDOMEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsHTMLHtmlElement.cpp:192]
nsGenericElement::HandleDOMEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsGenericElement.cpp:811]
nsHTMLBodyElement::HandleDOMEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsHTMLBodyElement.cpp:714]
nsGenericDOMDataNode::HandleDOMEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsGenericDOMDataNode.cpp:799]
[W] UMR: Uninitialized memory read in
nsEventStateManager::BeginTrackingDragGesture(nsGUIEvent *,nsIFrame *) {1
occurrence}
Reading 4 bytes from 0x0013f12c (4 bytes at 0x0013f12c uninitialized)
Address 0x0013f12c points into a thread's stack
Address 0x0013f12c is 12 bytes past the start of local variable 'event'
in nsEnderEventListener::DispatchMouseEvent(nsIDOMMouseEvent *,int)
Thread ID: 0x111
Error location
nsEventStateManager::BeginTrackingDragGesture(nsGUIEvent *,nsIFrame
*) [nsEventStateManager.cpp:591]
nsEventStateManager::PreHandleEvent(nsIPresContext *,nsGUIEvent
*,nsIFrame *,nsEventStatus *,nsIView *) [nsEventStateManager.cpp:398]
nsEnderEventListener::DispatchMouseEvent(nsIDOMMouseEvent *,int)
[nsGfxTextControlFrame.cpp:3608]
nsEnderEventListener::MouseDown(nsIDOMEvent *)
[nsGfxTextControlFrame.cpp:3690]
nsEventListenerManager::HandleEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsEventListenerManager.cpp:740]
nsDocument::HandleDOMEvent(nsIPresContext *,nsEvent *,nsIDOMEvent *
*,UINT,nsEventStatus *) [nsDocument.cpp:2419]
nsHTMLHtmlElement::HandleDOMEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsHTMLHtmlElement.cpp:192]
nsGenericElement::HandleDOMEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsGenericElement.cpp:811]
nsHTMLBodyElement::HandleDOMEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsHTMLBodyElement.cpp:714]
nsGenericDOMDataNode::HandleDOMEvent(nsIPresContext *,nsEvent
*,nsIDOMEvent * *,UINT,nsEventStatus *) [nsGenericDOMDataNode.cpp:799]
| Assignee | ||
Comment 1•26 years ago
|
||
accepting for M14. This is a lot like 25026, i think, where the ender text widget
isn't setting all the fields correctly before it redispatches the event. Should
be easy to fix.
Accepting for M14.
Status: NEW → ASSIGNED
Target Milestone: M14
| Assignee | ||
Comment 2•26 years ago
|
||
fix checked into nsGFXTextControlFrame.cpp. can someone with purify verify this?
kin?
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
I updated to pick up the changes. I don't see the UMR anymore. Thanks!
Marking VERIFIED.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•