VirtualBox

Changeset 101042 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Sep 7, 2023 9:53:03 AM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: asan side-case fix for r119663.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h

    r100068 r101042  
    283283    {
    284284        aVec.resize(static_cast<int>(aArr.size()));
    285         memcpy(&aVec[0], aArr.raw(), aArr.size() * sizeof(T));
     285        if (aArr.size())
     286            memcpy(&aVec[0], aArr.raw(), aArr.size() * sizeof(T));
    286287    }
    287288
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