Closed Bug 300432 Opened 19 years ago Closed 19 years ago

UMR in nsCategoryManager::NotifyObservers

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: pavlov, Assigned: chpe)

References

Details

Attachments

(1 file)

The checkin for bug 246085 caused this regression.

[W] UMR: Uninitialized memory read in nsCategoryManager::NotifyObservers(char
const*,char const*,char const*) {1 occurrence}
        Reading 4 bytes from 0x03506c84 (4 bytes at 0x03506c84 uninitialized)
        Address 0x03506c84 is 76 bytes into a 80 byte block at 0x03506c38
        Address 0x03506c84 points to a C++ new block in heap 0x01f30000
        Thread ID: 0x16f0
        Error location
            nsCategoryManager::NotifyObservers(char const*,char const*,char
const*) [c:\builds\mozilla\xpcom\components\nscategorymanager.cpp:526]
                void
                nsCategoryManager::NotifyObservers( const char *aTopic,
                                                    const char *aCategoryName,
                                                    const char *aEntryName )
                {
             =>   if (mSuppressNotifications)
                    return;
Attached patch fixSplinter Review
Attachment #189010 - Flags: superreview?(darin)
Attachment #189010 - Flags: review?(cbiesinger)
Attachment #189010 - Flags: superreview?(darin) → superreview+
Comment on attachment 189010 [details] [diff] [review]
fix

seems to me like this'd fit better into a constructor, but ok..
Attachment #189010 - Flags: review?(cbiesinger) → review+
hrm, yeah.. i agree with biesi.  why not put this initializer in the
nsCategoryManager constructor?
(In reply to comment #3)
> hrm, yeah.. i agree with biesi.  why not put this initializer in the
> nsCategoryManager constructor?

My patch (attachment 189593 [details] [diff] [review]) in bug 246085 includes that change.
-> chpe, his patch in bug 246085 fixes this
Assignee: cbiesinger → chpe
*** Bug 306780 has been marked as a duplicate of this bug. ***
Now that the latest patch for bug 246085 is in, we can mark this bug FIXED.
Status: NEW → RESOLVED
Closed: 19 years ago
Depends on: 246085
Resolution: --- → FIXED
*** Bug 325863 has been marked as a duplicate of this bug. ***
Worth noting that this is still alive on MOZILLA_1_8_0_BRANCH, which seems a bit disturbing to me.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: