VirtualBox

Changeset 100173 in vbox


Ignore:
Timestamp:
Jun 14, 2023 7:50:37 AM (20 months ago)
Author:
vboxsync
Message:

Devices/PC/DevQemuFwCfg: fix querying more than one file entry from the user supplied files, bugref:10431

File:
1 edited

Legend:

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

    r99945 r100173  
    711711
    712712        /* The entries are static, so we can deduce the entry number from the offset. */
    713         uint32_t idxEntry = off / sizeof(*pThis->paCfgFiles);
     713        uint32_t idxEntry = off / sizeof(pThis->u.CfgFile);
    714714        AssertReturn(idxEntry < pThis->cCfgFiles, VERR_INTERNAL_ERROR);
    715715
    716         off %= sizeof(*pThis->paCfgFiles);
     716        off %= sizeof(pThis->u.CfgFile);
    717717        cbToRead = RT_MIN(cbToRead, sizeof(pThis->u.CfgFile));
    718718
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