Closed Bug 306780 Opened 19 years ago Closed 19 years ago

[W] UMR: Uninitialized memory read in nsCategoryManager::NotifyObservers(char const*,char const*,char const*) {1 occurrence}

Categories

(Core :: XPCOM, defect)

1.8 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 300432

People

(Reporter: timeless, Assigned: chpe)

References

()

Details

[W] UMR: Uninitialized memory read in
nsCategoryManager::NotifyObservers(char const*,char const*,char const*) {1
occurrence}
        Reading 4 bytes from 0x03f838e0 (4 bytes at 0x03f838e0 uninitialized)
        Address 0x03f838e0 is 72 bytes into a 76 byte block at 0x03f83898
        Address 0x03f838e0 points to a C++ new block in heap 0x01770000
        Thread ID: 0xc38
        Error location
        nsCategoryManager::NotifyObservers(char const*,char const*,char const*)
[c:\build\chs3\build\mozilla\xpcom\components\nscategorymanager.cpp:526]
        
        inline CategoryNode*
        nsCategoryManager::get_category(const char* aName) {
          CategoryNode* node;
          if (!mTable.Get(aName, &node)) {
            return nsnull;
          }
          return node;
        }
        
        void
        nsCategoryManager::NotifyObservers( const char *aTopic,
                                            const char *aCategoryName,
                                            const char *aEntryName )
        {
     =>   if (mSuppressNotifications)
            return;
        
          nsCOMPtr<nsIObserverService> observerService
            (do_GetService("@mozilla.org/observer-service;1"));
          if (!observerService)
            return;
        
          if (aEntryName) {
            nsCOMPtr<nsISupportsCString> entry
                  (do_CreateInstance (NS_SUPPORTS_CSTRING_CONTRACTID));
                if (!entry)
                  return;
            
                nsresult rv = entry->SetData(nsDependentCString(aEntryName));
                if (NS_FAILED(rv))
        nsCategoryManager::AddCategoryEntry(char const*,char const*,char
const*,int,int,char * *)
[c:\build\chs3\build\mozilla\xpcom\components\nscategorymanager.cpp:614]
        RegisterProc  
[c:\build\chs3\build\mozilla\xpfe\components\build\nsmodule.cpp:149]
        nsGenericModule::RegisterSelf(nsIComponentManager *,nsIFile *,char
const*,char const*)
[c:\build\chs3\build\mozilla\rel-i586-pc-msvc\xpcom\build\nsgenericfactory.cpp:419]
        nsNativeComponentLoader::SelfRegisterDll(nsDll *,char const*,int)
[c:\build\chs3\build\mozilla\xpcom\components\nsnativecomponentloader.cpp:421]
        nsNativeComponentLoader::AutoRegisterComponent(int,nsIFile *,int *)
[c:\build\chs3\build\mozilla\xpcom\components\nsnativecomponentloader.cpp:880]
        nsNativeComponentLoader::RegisterComponentsInDir(int,nsIFile *)
[c:\build\chs3\build\mozilla\xpcom\components\nsnativecomponentloader.cpp:242]
        nsNativeComponentLoader::AutoRegisterComponents(int,nsIFile *)
[c:\build\chs3\build\mozilla\xpcom\components\nsnativecomponentloader.cpp:176]
        nsComponentManagerImpl::AutoRegisterImpl(int,nsIFile *,int)
[c:\build\chs3\build\mozilla\xpcom\components\nscomponentmanager.cpp:3191]
        nsComponentManagerImpl::AutoRegister(nsIFile *)
[c:\build\chs3\build\mozilla\xpcom\components\nscomponentmanager.cpp:3410]
    Allocation location
        !>(void *)     [C:\Documents and
Settings\josh\Desktop\b1580\BackEnd\xpcom_core.dll]
        nsCategoryManager::Create(void)
[c:\build\chs3\build\mozilla\xpcom\components\nscategorymanager.cpp:476]
        nsCategoryManagerFactory::CreateInstance(nsISupports *,nsID const&,void
* *) [c:\build\chs3\build\mozilla\xpcom\components\nscategorymanager.cpp:778]
        nsComponentManagerImpl::CreateInstance(nsID const&,nsISupports *,nsID
const&,void * *)
[c:\build\chs3\build\mozilla\xpcom\components\nscomponentmanager.cpp:1899]
        nsComponentManagerImpl::GetService(nsID const&,nsID const&,void * *)
[c:\build\chs3\build\mozilla\xpcom\components\nscomponentmanager.cpp:2103]
        nsComponentManagerImpl::ReadPersistentRegistry(void)
[c:\build\chs3\build\mozilla\xpcom\components\nscomponentmanager.cpp:1038]
        NS_InitXPCOM3_P
[c:\build\chs3\build\mozilla\xpcom\build\nsxpcominit.cpp:587]
        NS_InitXPCOM2_P
[c:\build\chs3\build\mozilla\xpcom\build\nsxpcominit.cpp:443]
Duplicate of bug 300432; and the latest patch (attachment 189593 [details] [diff] [review]) in bug 246085
contains a fix for it.
Summary: [W] UMR: Uninitialized memory read in nsCategoryManager::NotifyObservers(char const*,char const*,char const*) {1 occurrence} → [W] UMR: Uninitialized memory read in nsCategoryManager::NotifyObservers(char const*,char const*,char const*) {1 occurrence}

*** This bug has been marked as a duplicate of 300432 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.