VirtualBox

Changeset 9447 in vbox for trunk/src


Ignore:
Timestamp:
Jun 5, 2008 7:56:35 PM (17 years ago)
Author:
vboxsync
Message:

adapted DMI length check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevPcBios.cpp

    r9440 r9447  
    829829    do { \
    830830        size_t _len = strlen(s) + 1; \
    831         size_t _max = (size_t)(pszStr + _len - (char *)pTable) + 1; /* +1 for strtab terminator */ \
     831        size_t _max = (size_t)(pszStr + _len - (char *)pTable) + 5; /* +1 for strtab terminator +4 for end-of-table entry */ \
    832832        if (_max > cbMax) \
    833833            return PDMDevHlpVMSetError(pDevIns, VERR_TOO_MUCH_DATA, RT_SRC_POS, \
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