VirtualBox

Ignore:
Timestamp:
Mar 11, 2019 1:16:01 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129282
Message:

Runtime/fuzzmastercmd.cpp: Fix hang when the connection is closed while reading the request

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/fuzz/fuzzmastercmd.cpp

    r77509 r77652  
    11401140            size_t cbThisRead = cbReqMax - cbReq;
    11411141            int rc = RTTcpRead(hSocket, pbCur, cbThisRead, &cbThisRead);
    1142             if (RT_SUCCESS(rc))
     1142            if (   RT_SUCCESS(rc)
     1143                && cbThisRead)
    11431144            {
    11441145                cbReq += cbThisRead;
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