VirtualBox

Changeset 25955 in vbox


Ignore:
Timestamp:
Jan 21, 2010 12:04:52 PM (15 years ago)
Author:
vboxsync
Message:

#4610: virtio-net: fixed handling for port reads beyond the valid range.

File:
1 edited

Legend:

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

    r25830 r25955  
    330330    {
    331331        Log(("%s vnetGetConfig: Read beyond the config structure is attempted (port=%RTiop cb=%x).\n", INSTANCE(pState), port, cb));
    332         return VERR_INTERNAL_ERROR;
     332        memset(data, 0xFF, cb);
     333        return VINF_SUCCESS;
    333334    }
    334335    memcpy(data, ((uint8_t*)&pState->config) + port, cb);
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