VirtualBox

Changeset 66683 in vbox


Ignore:
Timestamp:
Apr 27, 2017 7:46:45 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
115074
Message:

VMM/STAM: don't call memcpy with n=0 or gcc asan will complain

File:
1 edited

Legend:

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

    r62644 r66683  
    20442044     * Copy the chars to the buffer and terminate it.
    20452045     */
    2046     memcpy(pThis->psz, pach, cch);
    2047     pThis->psz += cch;
     2046    if (cch)
     2047    {
     2048        memcpy(pThis->psz, pach, cch);
     2049        pThis->psz += cch;
     2050    }
    20482051    *pThis->psz = '\0';
    20492052    return cch;
Note: See TracChangeset for help on using the changeset viewer.

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