[W] UMC: Uninitialized memory copy in XPCOMGlueStartup {1 occurrence}

RESOLVED WORKSFORME

Status

()

P5
trivial
RESOLVED WORKSFORME
14 years ago
6 years ago

People

(Reporter: timeless, Assigned: timeless)

Tracking

Trunk
x86
Windows XP
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

14 years ago
[W] UMC: Uninitialized memory copy in XPCOMGlueStartup {1 occurrence}
        Copying 4 bytes from 0x0013f18c (4 bytes at 0x0013f18c uninitialized)
        Address 0x0013f18c points into a thread's stack 
        Address 0x0013f18c is 16 bytes past the start of local variable
'libSpec' in XPCOMGlueStartup
        Thread ID: 0x1724
        Error location
            XPCOMGlueStartup+0x21f
[r:\mozilla\xpcom\glue\standalone\nsxpcomglue.cpp:107 ip=0x0042adf2]
                        else {
                            rv = (*function)(&xpcomFunctions, libPath);
                            PR_Free(libPath);
                        }
                    }
                    else {
                        PRLibSpec libSpec;
                
                        libSpec.type = PR_LibSpec_Pathname;
                        if (!xpcomFile)
                            libSpec.value.pathname = XPCOM_DLL;
                        else
                            libSpec.value.pathname = xpcomFile;
                
             =>         xpcomLib = PR_LoadLibraryWithFlags(libSpec,
PR_LD_LAZY|PR_LD_GLOBAL);
                        if (!xpcomLib)
                            return NS_ERROR_FAILURE;
                
                        function = (GetFrozenFunctionsFunc)
PR_FindSymbol(xpcomLib, "NS_GetFrozenFunctions");
                
                        if (!function)
                            rv = NS_ERROR_FAILURE;
                        else
                            rv = (*function)(&xpcomFunctions,
libSpec.value.pathname);
                    }
                
                    if (NS_FAILED(rv))
                        goto bail;
                
            GRE_Startup+0x45    
[r:\mozilla\xpcom\glue\standalone\nsxpcomglue.cpp:461 ip=0x0042b019]
            main+0x77            [r:\mozilla\xpfe\bootstrap\nsapprunner.cpp:1737
ip=0x0040722e]
            WinMain+0x7a         [r:\mozilla\xpfe\bootstrap\nsapprunner.cpp:1840
ip=0x0040750e]
            WinMainCRTStartup+0x5f7
[f:\vs70builds\9466\vc\crtbld\crt\src\crtexe.c:392 ip=0x0042cd5d]

This is purify noise. PRLibSpec is 3 fields wide and we init 2 of them on average.
(Assignee)

Comment 1

14 years ago
Created attachment 153362 [details] [diff] [review]
silence purify
(Assignee)

Updated

13 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
QA Contact: xpcom
I think this bug was fixed by bug 298044.

Updated

6 years ago
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.