Closed Bug 5957 Opened 26 years ago Closed 26 years ago

purify reports UMR in range code

Categories

(Core :: Layout, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: buster, Assigned: mjudge)

Details

running viewer under purify, I open a small document whose first line is a single character. I click after the first character and type a second character, then exit. I get the following UMR's: [W] UMR: Uninitialized memory read in nsRangeList::GetFocusNode(nsIDOMNode * *) {1 occurrence} Reading 4 bytes from 0x05e55f48 (4 bytes at 0x05e55f48 uninitialized) Address 0x05e55f48 is 24 bytes into a 52 byte block at 0x05e55f30 Address 0x05e55f48 points to a C++ new block in heap 0x05a10000 Thread ID: 0xfd Error location nsRangeList::GetFocusNode(nsIDOMNode * *) [nsRangeList.cpp:508] nsCaret::SetupDrawingFrameAndOffset(void) [nsCaret.cpp:380] nsCaret::DrawCaret(void) [nsCaret.cpp:507] nsCaret::StartBlinking(void) [nsCaret.cpp:317] nsCaret::NotifySelectionChanged(void) [nsCaret.cpp:270] nsRangeList::NotifySelectionListeners(void) [nsRangeList.cpp:1082] nsRangeList::TakeFocus(nsIContent *,UINT,int) [nsRangeList.cpp:928] nsFrame::HandlePress(nsIPresContext&,nsGUIEvent *,nsEventStatus&) [nsFrame.cpp:798] nsFrame::HandleEvent(nsIPresContext&,nsGUIEvent *,nsEventStatus&) [nsFrame.cpp:759] PresShell::HandleEvent(nsIView *,nsGUIEvent *,nsEventStatus&) [nsPresShell.cpp:2008] Allocation location new(UINT) [new.cpp:23] NS_NewRangeList(nsIDOMSelection * *) [nsRangeList.cpp:214] nsLayoutFactory::CreateInstance(nsISupports *,nsID const&,void * *) [nsLayoutFactory.cpp:212] nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsComponentManager.cpp:1112] nsComponentManager::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsRepository.cpp:67] PresShell::Init(nsIDocument *,nsIPresContext *,nsIViewManager *,nsIStyleSet *) [nsPresShell.cpp:591] nsMarkupDocument::CreateShell(nsIPresContext *,nsIViewManager *,nsIStyleSet *,nsIPresShell * *) [nsMarkupDocument.cpp:70] DocumentViewerImpl::Init(void *,nsIDeviceContext *,nsIPref *,nsRect const&,nsScrollPreference) [nsDocumentViewer.cpp:323] nsWebShell::Embed(nsIContentViewer *,char const*,nsISupports *) [nsWebShell.cpp:735] nsDocumentBindInfo::OnStartBinding(nsIURL *,char const*) [nsDocLoader.cpp:2000] [W] UMR: Uninitialized memory read in nsRangeList::GetFocusOffset(int *) {1 occurrence} Reading 4 bytes from 0x05e55f48 (4 bytes at 0x05e55f48 uninitialized) Address 0x05e55f48 is 24 bytes into a 52 byte block at 0x05e55f30 Address 0x05e55f48 points to a C++ new block in heap 0x05a10000 Thread ID: 0xfd Error location nsRangeList::GetFocusOffset(int *) [nsRangeList.cpp:523] nsCaret::SetupDrawingFrameAndOffset(void) [nsCaret.cpp:380] nsCaret::DrawCaret(void) [nsCaret.cpp:507] nsCaret::StartBlinking(void) [nsCaret.cpp:317] nsCaret::NotifySelectionChanged(void) [nsCaret.cpp:270] nsRangeList::NotifySelectionListeners(void) [nsRangeList.cpp:1082] nsRangeList::TakeFocus(nsIContent *,UINT,int) [nsRangeList.cpp:928] nsFrame::HandlePress(nsIPresContext&,nsGUIEvent *,nsEventStatus&) [nsFrame.cpp:798] nsFrame::HandleEvent(nsIPresContext&,nsGUIEvent *,nsEventStatus&) [nsFrame.cpp:759] PresShell::HandleEvent(nsIView *,nsGUIEvent *,nsEventStatus&) [nsPresShell.cpp:2008] Allocation location new(UINT) [new.cpp:23] NS_NewRangeList(nsIDOMSelection * *) [nsRangeList.cpp:214] nsLayoutFactory::CreateInstance(nsISupports *,nsID const&,void * *) [nsLayoutFactory.cpp:212] nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsComponentManager.cpp:1112] nsComponentManager::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsRepository.cpp:67] PresShell::Init(nsIDocument *,nsIPresContext *,nsIViewManager *,nsIStyleSet *) [nsPresShell.cpp:591] nsMarkupDocument::CreateShell(nsIPresContext *,nsIViewManager *,nsIStyleSet *,nsIPresShell * *) [nsMarkupDocument.cpp:70] DocumentViewerImpl::Init(void *,nsIDeviceContext *,nsIPref *,nsRect const&,nsScrollPreference) [nsDocumentViewer.cpp:323] nsWebShell::Embed(nsIContentViewer *,char const*,nsISupports *) [nsWebShell.cpp:735] nsDocumentBindInfo::OnStartBinding(nsIURL *,char const*) [nsDocLoader.cpp:2000] [W] UMR: Uninitialized memory read in nsRangeList::GetFocusNode(nsIDOMNode * *) {5 occurrences} Reading 4 bytes from 0x05e55f48 (4 bytes at 0x05e55f48 uninitialized) Address 0x05e55f48 is 24 bytes into a 52 byte block at 0x05e55f30 Address 0x05e55f48 points to a C++ new block in heap 0x05a10000 Thread ID: 0xfd Error location nsRangeList::GetFocusNode(nsIDOMNode * *) [nsRangeList.cpp:508] nsCaret::SetupDrawingFrameAndOffset(void) [nsCaret.cpp:380] nsCaret::DrawCaret(void) [nsCaret.cpp:507] nsCaret::CaretBlinkCallback(nsITimer *,void *) [nsCaret.cpp:576] TimerImpl::Fire(DWORD) [nsTimer.cpp:308] TimerImpl::ProcessTimeouts(DWORD) [nsTimer.cpp:183] FireTimeout(void *,UINT,UINT,DWORD) [nsTimer.cpp:101] TranslateMessageEx [user32.dll] DispatchMessageA [USER32.dll] nsNativeViewerApp::Run(void) [nsWinMain.cpp:53] Allocation location new(UINT) [new.cpp:23] NS_NewRangeList(nsIDOMSelection * *) [nsRangeList.cpp:214] nsLayoutFactory::CreateInstance(nsISupports *,nsID const&,void * *) [nsLayoutFactory.cpp:212] nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsComponentManager.cpp:1112] nsComponentManager::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsRepository.cpp:67] PresShell::Init(nsIDocument *,nsIPresContext *,nsIViewManager *,nsIStyleSet *) [nsPresShell.cpp:591] nsMarkupDocument::CreateShell(nsIPresContext *,nsIViewManager *,nsIStyleSet *,nsIPresShell * *) [nsMarkupDocument.cpp:70] DocumentViewerImpl::Init(void *,nsIDeviceContext *,nsIPref *,nsRect const&,nsScrollPreference) [nsDocumentViewer.cpp:323] nsWebShell::Embed(nsIContentViewer *,char const*,nsISupports *) [nsWebShell.cpp:735] nsDocumentBindInfo::OnStartBinding(nsIURL *,char const*) [nsDocLoader.cpp:2000] [W] UMR: Uninitialized memory read in nsRangeList::GetFocusOffset(int *) {5 occurrences} Reading 4 bytes from 0x05e55f48 (4 bytes at 0x05e55f48 uninitialized) Address 0x05e55f48 is 24 bytes into a 52 byte block at 0x05e55f30 Address 0x05e55f48 points to a C++ new block in heap 0x05a10000 Thread ID: 0xfd Error location nsRangeList::GetFocusOffset(int *) [nsRangeList.cpp:523] nsCaret::SetupDrawingFrameAndOffset(void) [nsCaret.cpp:380] nsCaret::DrawCaret(void) [nsCaret.cpp:507] nsCaret::CaretBlinkCallback(nsITimer *,void *) [nsCaret.cpp:576] TimerImpl::Fire(DWORD) [nsTimer.cpp:308] TimerImpl::ProcessTimeouts(DWORD) [nsTimer.cpp:183] FireTimeout(void *,UINT,UINT,DWORD) [nsTimer.cpp:101] TranslateMessageEx [user32.dll] DispatchMessageA [USER32.dll] nsNativeViewerApp::Run(void) [nsWinMain.cpp:53] Allocation location new(UINT) [new.cpp:23] NS_NewRangeList(nsIDOMSelection * *) [nsRangeList.cpp:214] nsLayoutFactory::CreateInstance(nsISupports *,nsID const&,void * *) [nsLayoutFactory.cpp:212] nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsComponentManager.cpp:1112] nsComponentManager::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsRepository.cpp:67] PresShell::Init(nsIDocument *,nsIPresContext *,nsIViewManager *,nsIStyleSet *) [nsPresShell.cpp:591] nsMarkupDocument::CreateShell(nsIPresContext *,nsIViewManager *,nsIStyleSet *,nsIPresShell * *) [nsMarkupDocument.cpp:70] DocumentViewerImpl::Init(void *,nsIDeviceContext *,nsIPref *,nsRect const&,nsScrollPreference) [nsDocumentViewer.cpp:323] nsWebShell::Embed(nsIContentViewer *,char const*,nsISupports *) [nsWebShell.cpp:735] nsDocumentBindInfo::OnStartBinding(nsIURL *,char const*) [nsDocLoader.cpp:2000] [W] UMR: Uninitialized memory read in nsRangeList::GetFocusNode(nsIDOMNode * *) {3 occurrences} Reading 4 bytes from 0x05e55f48 (4 bytes at 0x05e55f48 uninitialized) Address 0x05e55f48 is 24 bytes into a 52 byte block at 0x05e55f30 Address 0x05e55f48 points to a C++ new block in heap 0x05a10000 Thread ID: 0xfd Error location nsRangeList::GetFocusNode(nsIDOMNode * *) [nsRangeList.cpp:508] nsCaret::SetupDrawingFrameAndOffset(void) [nsCaret.cpp:380] nsCaret::RefreshDrawCaret(nsIView *,nsIRenderingContext&,nsRect const&) [nsCaret.cpp:546] nsCaret::Refresh(nsIView *,nsIRenderingContext&,nsRect const&) [nsCaret.cpp:166] PresShell::RefreshCaret(nsIView *,nsIRenderingContext&,nsRect const&) [nsPresShell.cpp:986] PresShell::Paint(nsIView *,nsIRenderingContext&,nsRect const&) [nsPresShell.cpp:1956] nsView::Paint(nsIRenderingContext&,nsRect const&,UINT,int&) [nsView.cpp:285] nsViewManager::RenderView(nsIView *,nsIRenderingContext&,nsRect const&,nsRect&,int&) [nsViewManager.cpp:1277] nsViewManager::RenderViews(nsIView *,nsIRenderingContext&,nsRect const&,int&) [nsViewManager.cpp:810] nsViewManager::Refresh(nsIView *,nsIRenderingContext *,nsRect const*,UINT) [nsViewManager.cpp:519] Allocation location new(UINT) [new.cpp:23] NS_NewRangeList(nsIDOMSelection * *) [nsRangeList.cpp:214] nsLayoutFactory::CreateInstance(nsISupports *,nsID const&,void * *) [nsLayoutFactory.cpp:212] nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsComponentManager.cpp:1112] nsComponentManager::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsRepository.cpp:67] PresShell::Init(nsIDocument *,nsIPresContext *,nsIViewManager *,nsIStyleSet *) [nsPresShell.cpp:591] nsMarkupDocument::CreateShell(nsIPresContext *,nsIViewManager *,nsIStyleSet *,nsIPresShell * *) [nsMarkupDocument.cpp:70] DocumentViewerImpl::Init(void *,nsIDeviceContext *,nsIPref *,nsRect const&,nsScrollPreference) [nsDocumentViewer.cpp:323] nsWebShell::Embed(nsIContentViewer *,char const*,nsISupports *) [nsWebShell.cpp:735] nsDocumentBindInfo::OnStartBinding(nsIURL *,char const*) [nsDocLoader.cpp:2000] [W] UMR: Uninitialized memory read in nsRangeList::GetFocusOffset(int *) {3 occurrences} Reading 4 bytes from 0x05e55f48 (4 bytes at 0x05e55f48 uninitialized) Address 0x05e55f48 is 24 bytes into a 52 byte block at 0x05e55f30 Address 0x05e55f48 points to a C++ new block in heap 0x05a10000 Thread ID: 0xfd Error location nsRangeList::GetFocusOffset(int *) [nsRangeList.cpp:523] nsCaret::SetupDrawingFrameAndOffset(void) [nsCaret.cpp:380] nsCaret::RefreshDrawCaret(nsIView *,nsIRenderingContext&,nsRect const&) [nsCaret.cpp:546] nsCaret::Refresh(nsIView *,nsIRenderingContext&,nsRect const&) [nsCaret.cpp:166] PresShell::RefreshCaret(nsIView *,nsIRenderingContext&,nsRect const&) [nsPresShell.cpp:986] PresShell::Paint(nsIView *,nsIRenderingContext&,nsRect const&) [nsPresShell.cpp:1956] nsView::Paint(nsIRenderingContext&,nsRect const&,UINT,int&) [nsView.cpp:285] nsViewManager::RenderView(nsIView *,nsIRenderingContext&,nsRect const&,nsRect&,int&) [nsViewManager.cpp:1277] nsViewManager::RenderViews(nsIView *,nsIRenderingContext&,nsRect const&,int&) [nsViewManager.cpp:810] nsViewManager::Refresh(nsIView *,nsIRenderingContext *,nsRect const*,UINT) [nsViewManager.cpp:519] Allocation location new(UINT) [new.cpp:23] NS_NewRangeList(nsIDOMSelection * *) [nsRangeList.cpp:214] nsLayoutFactory::CreateInstance(nsISupports *,nsID const&,void * *) [nsLayoutFactory.cpp:212] nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsComponentManager.cpp:1112] nsComponentManager::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsRepository.cpp:67] PresShell::Init(nsIDocument *,nsIPresContext *,nsIViewManager *,nsIStyleSet *) [nsPresShell.cpp:591] nsMarkupDocument::CreateShell(nsIPresContext *,nsIViewManager *,nsIStyleSet *,nsIPresShell * *) [nsMarkupDocument.cpp:70] DocumentViewerImpl::Init(void *,nsIDeviceContext *,nsIPref *,nsRect const&,nsScrollPreference) [nsDocumentViewer.cpp:323] nsWebShell::Embed(nsIContentViewer *,char const*,nsISupports *) [nsWebShell.cpp:735] nsDocumentBindInfo::OnStartBinding(nsIURL *,char const*) [nsDocLoader.cpp:2000] [W] UMR: Uninitialized memory read in nsRangeList::GetFocusNode(nsIDOMNode * *) {1 occurrence} Reading 4 bytes from 0x05e55f48 (4 bytes at 0x05e55f48 uninitialized) Address 0x05e55f48 is 24 bytes into a 52 byte block at 0x05e55f30 Address 0x05e55f48 points to a C++ new block in heap 0x05a10000 Thread ID: 0xfd Error location nsRangeList::GetFocusNode(nsIDOMNode * *) [nsRangeList.cpp:508] nsCaret::SetupDrawingFrameAndOffset(void) [nsCaret.cpp:380] nsCaret::DrawCaret(void) [nsCaret.cpp:507] nsCaret::StartBlinking(void) [nsCaret.cpp:317] nsCaret::NotifySelectionChanged(void) [nsCaret.cpp:270] nsRangeList::NotifySelectionListeners(void) [nsRangeList.cpp:1082] nsRangeList::EndBatchChanges(void) [nsRangeList.cpp:1043] nsEditor::Do(nsITransaction *) [nsEditor.cpp:687] nsEditor::InsertText(nsString const&) [nsEditor.cpp:1131] nsTextEditor::InsertText(nsString const&) [nsTextEditor.cpp:815] Allocation location new(UINT) [new.cpp:23] NS_NewRangeList(nsIDOMSelection * *) [nsRangeList.cpp:214] nsLayoutFactory::CreateInstance(nsISupports *,nsID const&,void * *) [nsLayoutFactory.cpp:212] nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsComponentManager.cpp:1112] nsComponentManager::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsRepository.cpp:67] PresShell::Init(nsIDocument *,nsIPresContext *,nsIViewManager *,nsIStyleSet *) [nsPresShell.cpp:591] nsMarkupDocument::CreateShell(nsIPresContext *,nsIViewManager *,nsIStyleSet *,nsIPresShell * *) [nsMarkupDocument.cpp:70] DocumentViewerImpl::Init(void *,nsIDeviceContext *,nsIPref *,nsRect const&,nsScrollPreference) [nsDocumentViewer.cpp:323] nsWebShell::Embed(nsIContentViewer *,char const*,nsISupports *) [nsWebShell.cpp:735] nsDocumentBindInfo::OnStartBinding(nsIURL *,char const*) [nsDocLoader.cpp:2000] [W] UMR: Uninitialized memory read in nsRangeList::GetFocusOffset(int *) {1 occurrence} Reading 4 bytes from 0x05e55f48 (4 bytes at 0x05e55f48 uninitialized) Address 0x05e55f48 is 24 bytes into a 52 byte block at 0x05e55f30 Address 0x05e55f48 points to a C++ new block in heap 0x05a10000 Thread ID: 0xfd Error location nsRangeList::GetFocusOffset(int *) [nsRangeList.cpp:523] nsCaret::SetupDrawingFrameAndOffset(void) [nsCaret.cpp:380] nsCaret::DrawCaret(void) [nsCaret.cpp:507] nsCaret::StartBlinking(void) [nsCaret.cpp:317] nsCaret::NotifySelectionChanged(void) [nsCaret.cpp:270] nsRangeList::NotifySelectionListeners(void) [nsRangeList.cpp:1082] nsRangeList::EndBatchChanges(void) [nsRangeList.cpp:1043] nsEditor::Do(nsITransaction *) [nsEditor.cpp:687] nsEditor::InsertText(nsString const&) [nsEditor.cpp:1131] nsTextEditor::InsertText(nsString const&) [nsTextEditor.cpp:815] Allocation location new(UINT) [new.cpp:23] NS_NewRangeList(nsIDOMSelection * *) [nsRangeList.cpp:214] nsLayoutFactory::CreateInstance(nsISupports *,nsID const&,void * *) [nsLayoutFactory.cpp:212] nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsComponentManager.cpp:1112] nsComponentManager::CreateInstance(nsID const&,nsISupports *,nsID const&,void * *) [nsRepository.cpp:67] PresShell::Init(nsIDocument *,nsIPresContext *,nsIViewManager *,nsIStyleSet *) [nsPresShell.cpp:591] nsMarkupDocument::CreateShell(nsIPresContext *,nsIViewManager *,nsIStyleSet *,nsIPresShell * *) [nsMarkupDocument.cpp:70] DocumentViewerImpl::Init(void *,nsIDeviceContext *,nsIPref *,nsRect const&,nsScrollPreference) [nsDocumentViewer.cpp:323] nsWebShell::Embed(nsIContentViewer *,char const*,nsISupports *) [nsWebShell.cpp:735] nsDocumentBindInfo::OnStartBinding(nsIURL *,char const*) [nsDocLoader.cpp:2000]
Status: NEW → ASSIGNED
accepting bug
Assignee: jfrancis → mjudge
Status: ASSIGNED → NEW
assigning to mjudge, owner of nsRangeList.cpp
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
i believe this was fixed since there is nothing wrong with that method now. maybe its confused about the else statement, but i run it through and i get no UMR on windows. please recheck i would like to see if this is still true.
Status: RESOLVED → VERIFIED
Fixed in June 2 Build.
URL: any
You need to log in before you can comment on or make changes to this bug.