VirtualBox

Ignore:
Timestamp:
Dec 18, 2009 2:04:56 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56153
Message:

SUPDrv: Fixed recent regression that may cause the SUPDRVSESSION allocation to be too small on some platforms, and thereby corrupting heap or/and triggering system panic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r25465 r25484  
    465465    /** Global cookie. */
    466466    uint32_t                        u32Cookie;
    467 
    468     /** The IDT entry number.
    469      * Only valid if pIdtPatches is set. */
    470     uint8_t volatile                u8Idt;
     467    /** The actual size of SUPDRVSESSION. (SUPDRV_AGNOSTIC) */
     468    uint32_t                        cbSession;
    471469
    472470    /** Loader mutex.
     
    600598int  VBOXCALL   supdrvIOCtlFast(uintptr_t uIOCtl, VMCPUID idCpu, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
    601599int  VBOXCALL   supdrvIDC(uintptr_t uIOCtl, PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession, PSUPDRVIDCREQHDR pReqHdr);
    602 int  VBOXCALL   supdrvInitDevExt(PSUPDRVDEVEXT pDevExt);
     600int  VBOXCALL   supdrvInitDevExt(PSUPDRVDEVEXT pDevExt, size_t cbSession);
    603601void VBOXCALL   supdrvDeleteDevExt(PSUPDRVDEVEXT pDevExt);
    604602int  VBOXCALL   supdrvCreateSession(PSUPDRVDEVEXT pDevExt, bool fUser, PSUPDRVSESSION *ppSession);
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