VirtualBox

Changeset 100476 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 10, 2023 4:00:32 PM (17 months ago)
Author:
vboxsync
Message:

Linux: SUPDrv: prevent memcpy fortify warning, bugref:10482.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvTracer.cpp

    r99739 r100476  
    999999
    10001000            if (!pUmod)
    1001                 memcpy(pProv->szName, pszName, cchName + 1);
     1001                SUPDRV_UNFORTIFIED_MEMCPY(pProv->szName, pszName, cchName + 1);
    10021002            else
    10031003                RTStrPrintf(pProv->szName, cchName + 1, "%s%u", pszName, (uint32_t)pSession->Process);
    1004             memcpy((void *)pProv->Core.pszModName, pszModName, cchModName + 1);
     1004            SUPDRV_UNFORTIFIED_MEMCPY((void *)pProv->Core.pszModName, pszModName, cchModName + 1);
    10051005
    10061006            /*
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