VirtualBox

Changeset 58277 in vbox


Ignore:
Timestamp:
Oct 15, 2015 9:36:59 PM (9 years ago)
Author:
vboxsync
Message:

darwin/VBoxUSB.cpp,SUPDrv-darwin.cpp: Added 256 byte safety padding to all the classes, just to be on the safe side.

Location:
trunk/src/VBox/HostDrivers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r58275 r58277  
    130130
    131131    RTR0MEMEF_NEW_AND_DELETE_OPERATORS_IOKIT();
     132
     133private:
     134    /** Guard against the parent class growing and us using outdated headers. */
     135    uint8_t m_abSafetyPadding[256];
    132136};
    133137
     
    145149
    146150private:
     151    /** Guard against the parent class growing and us using outdated headers. */
     152    uint8_t m_abSafetyPadding[256];
     153
    147154    PSUPDRVSESSION          m_pSession;     /**< The session. */
    148155    task_t                  m_Task;         /**< The client task. */
  • trunk/src/VBox/HostDrivers/VBoxUSB/darwin/VBoxUSB.cpp

    r58276 r58277  
    113113    virtual void free();
    114114    /** @} */
     115
     116private:
     117    /** Guard against the parent class growing and us using outdated headers. */
     118    uint8_t m_abSafetyPadding[256];
    115119};
    116120OSDefineMetaClassAndStructors(org_virtualbox_VBoxUSB, IOService);
     
    149153
    150154private:
     155    /** Guard against the parent class growing and us using outdated headers. */
     156    uint8_t m_abSafetyPadding[256];
    151157    /** The service provider. */
    152158    org_virtualbox_VBoxUSB *m_pProvider;
     
    201207private:
    202208    /** Padding to guard against parent class expanding (see class remarks). */
    203     uint8_t m_abPadding[256];
     209    uint8_t m_abSafetyPadding[256];
    204210    /** The interface we're driving (aka. the provider). */
    205211    IOUSBDevice *m_pDevice;
     
    263269
    264270private:
     271    /** Padding to guard against parent class expanding (see class remarks). */
     272    uint8_t m_abSafetyPadding[256];
    265273    /** The interface we're driving (aka. the provider). */
    266274    IOUSBInterface *m_pInterface;
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