VirtualBox

Changeset 26055 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 26, 2010 9:44:13 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56972
Message:

#4610: virtio-net: changed out-of-range read handling to return VERR_IOM_IOPORT_UNUSED.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevVirtioNet.cpp

    r26029 r26055  
    333333    {
    334334        Log(("%s vnetGetConfig: Read beyond the config structure is attempted (port=%RTiop cb=%x).\n", INSTANCE(pState), port, cb));
    335         memset(data, 0xFF, cb);
    336         return VINF_SUCCESS;
     335        return VERR_IOM_IOPORT_UNUSED;
    337336    }
    338337    memcpy(data, ((uint8_t*)&pState->config) + port, cb);
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