VirtualBox

Changeset 41068 in vbox


Ignore:
Timestamp:
Apr 26, 2012 11:39:29 AM (12 years ago)
Author:
vboxsync
Message:

SUPDrv.c: Fixed read beyond allocation in supdrvIOCtl_LdrOpen. Kudos to Vitali for finding it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r41067 r41068  
    38923892     * Allocate memory.
    38933893     */
    3894     pv = RTMemAlloc(RT_OFFSETOF(SUPDRVLDRIMAGE, szName[cchName + 1]));
     3894    Assert(cchName < sizeof(pImage->szName));
     3895    pv = RTMemAlloc(sizeof(SUPDRVLDRIMAGE));
    38953896    if (!pv)
    38963897    {
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