VirtualBox

Changeset 30481 in vbox


Ignore:
Timestamp:
Jun 28, 2010 6:16:52 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63164
Message:

VBoxHDD: Zero the buffer after a read provided valid data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VBoxHDD.cpp

    r30313 r30481  
    572572        if (rc == VERR_VD_BLOCK_FREE)
    573573        {
    574             /* Fill the free space with 0 if we are told to do so. */
    575             if (fHandleFreeBlocks)
     574            /* Fill the free space with 0 if we are told to do so
     575             * or a previous read returned valid data. */
     576            if (fHandleFreeBlocks || !fAllFree)
    576577                memset(pvBuf, '\0', cbThisRead);
    577578            else
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