VirtualBox

Changeset 64411 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Oct 25, 2016 11:56:40 AM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
111525
Message:

Devices/Storage/IOBufMgmt: More assertions

File:
1 edited

Legend:

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

    r63562 r64411  
    321321
    322322    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
     323    AssertReturn(cbIoBuf > 0, VERR_INVALID_PARAMETER);
    323324
    324325    if (!pThis->cbFree)
     
    352353        pIoBufDesc->Int.pIoBufMgr = pThis;
    353354        *pcbIoBufAllocated = cbIoBuf - cbLeft;
     355        Assert(   (RT_SUCCESS(rc) && *pcbIoBufAllocated > 0)
     356               || RT_FAILURE(rc));
    354357
    355358        pThis->cbFree -= cbIoBuf - cbLeft;
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