VirtualBox

Changeset 103359 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Feb 14, 2024 2:39:26 PM (11 months ago)
Author:
vboxsync
Message:

VMM/DBGF,PDMLdr,PGM: Addressed parfait's complaints about uninitialized variables. bugref:3409

Location:
trunk/src/VBox/VMM/VMMR3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFAddr.cpp

    r98103 r103359  
    240240{
    241241    VMCPU_ASSERT_EMT(pVCpu);
    242     /* This is just a wrapper because we cannot pass FlatPtr thru VMR3ReqCall directly. */
    243     PGMPTWALK Walk;
     242    PGMPTWALK Walk = { NIL_RTGCPTR, NIL_RTGCPHYS, NIL_RTGCPHYS, false };
    244243    int const rc = PGMGstGetPage(pVCpu, pAddress->FlatPtr, &Walk);
    245244    *pGCPhys = Walk.GCPhys;
  • trunk/src/VBox/VMM/VMMR3/PDMLdr.cpp

    r99775 r103359  
    714714     * Ask the support library to load it.
    715715     */
    716     void           *pvImageBase;
    717716    RTERRINFOSTATIC ErrInfo;
    718     RTErrInfoInitStatic(&ErrInfo);
    719     int rc = SUPR3LoadModule(pszFilename, pszName, &pvImageBase, &ErrInfo.Core);
     717    void           *pvImageBase = NULL;
     718    int rc = SUPR3LoadModule(pszFilename, pszName, &pvImageBase, RTErrInfoInitStatic(&ErrInfo));
    720719    if (RT_SUCCESS(rc))
    721720    {
  • trunk/src/VBox/VMM/VMMR3/PGMDbg.cpp

    r102859 r103359  
    10071007    uint32_t        cYieldCountDown         = cYieldCountDownReload;
    10081008    RTGCPHYS        GCPhysPrev              = NIL_RTGCPHYS;
     1009    PGMPTWALK       Walk                    = { NIL_RTGCPTR, NIL_RTGCPHYS, NIL_RTGCPHYS, false };
     1010    PGMPTWALKGST    WalkGst                 = { {}, PGMPTWALKGSTTYPE_INVALID };
    10091011    bool            fFullWalk               = true;
    1010     PGMPTWALK       Walk;
    1011     PGMPTWALKGST    WalkGst;
    10121012
    10131013    PGM_LOCK_VOID(pVM);
    10141014    for (;; offPage = 0)
    10151015    {
    1016         int rc;
     1016        int             rc;
    10171017        if (fFullWalk)
    10181018            rc = pgmGstPtWalk(pVCpu, GCPtr, &Walk, &WalkGst);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette