VirtualBox

Changeset 93739 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 14, 2022 7:14:39 PM (3 years ago)
Author:
vboxsync
Message:

Devices/DevVGA-SVGA3d-win-dx: Fix possible call of RTMemFree(*ppvData) with uninitialized *ppvData

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win-dx.cpp

    r93357 r93739  
    50875087        return VERR_NO_MEMORY;
    50885088
     5089    *ppvData = pvData;
     5090    *pcbData = Bytes;
     5091
    50895092    int rc = dxStagingBufferRealloc(pDevice, Bytes);
    50905093    if (RT_SUCCESS(rc))
     
    51245127    }
    51255128
    5126     if (RT_SUCCESS(rc))
    5127     {
    5128         *ppvData = pvData;
    5129         *pcbData = Bytes;
    5130     }
    5131     else
     5129    if (RT_FAILURE(rc))
    51325130    {
    51335131        RTMemFree(*ppvData);
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