Closed
Bug 219673
Opened 21 years ago
Closed 21 years ago
Uninitialized memory read in nsHTMLEditor
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
People
(Reporter: keeda, Assigned: keeda)
Details
Attachments
(1 file)
605 bytes,
patch
|
glazou
:
review+
sfraser_bugs
:
superreview+
|
Details | Diff | Splinter Review |
From purify:
[W] UMR: Uninitialized memory read in
nsHTMLEditor::MouseUp(int,int,nsIDOMElement *) {1 occurrence}
Reading 1 byte from 0x106aae4e (1 byte at 0x106aae4e uninitialized)
Address 0x106aae4e is 414 bytes into a 628 byte block at 0x106aacb0
Address 0x106aae4e points to a C++ new block in heap 0x024f0000
Thread ID: 0x7b8
Error location
nsHTMLEditor::MouseUp(int,int,nsIDOMElement *)
[nshtmlobjectresizer.cpp:646]
HideShadowAndInfo();
SetFinalSize(aClientX, aClientY);
}
=> else if (mIsMoving || mGrabberClicked) {
if (mIsMoving) {
mPositioningShadow->SetAttribute(NS_LITERAL_STRING("class"),
NS_LITERAL_STRING("hidden"));
SetFinalPosition(aClientX, aClientY);
nsHTMLEditorMouseListener::MouseUp(nsIDOMEvent *)
[nshtmleditormouselistener.cpp:106]
PRInt32 clientX, clientY;
mouseEvent->GetClientX(&clientX);
mouseEvent->GetClientY(&clientY);
=> objectResizer->MouseUp(clientX, clientY, element);
}
return nsTextEditorMouseListener::MouseUp(aMouseEvent);
nsCOMPtr<nsIEditor>::nsCOMPtr<nsIEditor>(nsQueryInterface const&)
[nscomptr.h:549]
nsUndoCommand::IsCommandEnabled(char const*,nsISupports *,int *)
[nseditorcommands.cpp:74]
PRBool *outCmdEnabled)
{
[W] UMR: Uninitialized memory read in
nsHTMLEditor::MouseUp(int,int,nsIDOMElement *) {1 occurrence}
Reading 1 byte from 0x106aae4e (1 byte at 0x106aae4e uninitialized)
Address 0x106aae4e is 414 bytes into a 628 byte block at 0x106aacb0
Address 0x106aae4e points to a C++ new block in heap 0x024f0000
Thread ID: 0x7b8
Error location
nsHTMLEditor::MouseUp(int,int,nsIDOMElement *)
[nshtmlobjectresizer.cpp:651]
mPositioningShadow->SetAttribute(NS_LITERAL_STRING("class"),
NS_LITERAL_STRING("hidden"));
SetFinalPosition(aClientX, aClientY);
}
=> if (mGrabberClicked) {
EndMoving();
mGrabberClicked = PR_FALSE;
mIsMoving = PR_FALSE;
nsHTMLEditorMouseListener::MouseUp(nsIDOMEvent *)
[nshtmleditormouselistener.cpp:106]
nsWindow::DispatchEvent(nsGUIEvent *,nsEventStatus&) [nswindow.cpp:1050]
nsWindow::DispatchWindowEvent(nsGUIEvent *) [nswindow.cpp:1070]
Assignee | ||
Comment 1•21 years ago
|
||
Oops ... fixing typo in summary.
Summary: Unitialized memory read in nsHTMLEditor → Uninitialized memory read in nsHTMLEditor
Assignee | ||
Comment 2•21 years ago
|
||
Assignee | ||
Comment 3•21 years ago
|
||
Comment on attachment 131723 [details] [diff] [review]
Fix ?
Daniel can you please have a look at this?
Attachment #131723 -
Flags: review?(daniel)
Comment on attachment 131723 [details] [diff] [review]
Fix ?
good catch. Thanks!
r=glazman
get a sr and check that in ASAP :-)
Attachment #131723 -
Flags: review?(daniel) → review+
Assignee | ||
Comment 6•21 years ago
|
||
Comment on attachment 131723 [details] [diff] [review]
Fix ?
This is a really simple one-liner that fixes a purify UMR.
(Hoping sfarser is around. I'm not really know who does editor sr's these
days.)
Attachment #131723 -
Flags: superreview?(sfraser)
Updated•21 years ago
|
Attachment #131723 -
Flags: superreview?(sfraser) → superreview+
Assignee | ||
Comment 7•21 years ago
|
||
Thanks for the quick reviews. Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•