VirtualBox

Ignore:
Timestamp:
Aug 7, 2019 3:58:55 AM (5 years ago)
Author:
vboxsync
Message:

Changes to enforce VirtIO 1.0 section 4.1.3.1 compliant device configuration access

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VirtIO/Virtio_1_0.h

    r80168 r80169  
    490490        memcpy((char *)&val, pv, cb);
    491491        FMTHEX(pszFormattedVal, val, cb * 2);
    492         RTStrPrintf(pszDepiction, sizeof(pszDepiction), "%s%s[%d:%d]", pszMember, pszIdx, uOffset, uOffset + cb);
     492        if (uOffset != 0) /* display bounds if partial member access */
     493            RTStrPrintf(pszDepiction, sizeof(pszDepiction), "%s%s[%d:%d]", pszMember, pszIdx, uOffset, uOffset + cb - 1);
     494        else
     495            RTStrPrintf(pszDepiction, sizeof(pszDepiction), "%s%s", pszMember, pszIdx);
    493496        RTStrPrintf(pszDepiction, sizeof(pszDepiction), "%-30s", pszDepiction);
    494497        int first = 0;
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