VirtualBox

Ignore:
Timestamp:
Jun 22, 2020 6:34:12 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
138782
Message:

FsPerf: Off by one fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/fs/FsPerf.cpp

    r84509 r84912  
    35333533        if (cbToRead > cbLeft)
    35343534            cbToRead = (size_t)cbLeft;
    3535         pbBuf[cbToRead] = 0xff;
     3535        pbBuf[cbToRead - 1] = 0xff;
    35363536
    35373537        RTTESTI_CHECK_RC_RET(RTFileRead(hFile1, pbBuf, cbToRead, NULL), VINF_SUCCESS, rcCheck);
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