VirtualBox

Ignore:
Timestamp:
Aug 23, 2018 8:51:08 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124545
Message:

NetLwf/Win: (bugref:9233) Ignore empty MDLs to prevent Windows host crashes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/drv/VBoxNetLwf-win.cpp

    r73097 r73852  
    13931393    ULONG cSegs = 0;
    13941394    for (PMDL pMdl = NET_BUFFER_CURRENT_MDL(pNetBuf); pMdl; pMdl = NDIS_MDL_LINKAGE(pMdl))
    1395         cSegs++;
     1395    {
     1396        /* Skip empty MDLs (see @bugref{9233}) */
     1397        if (MmGetMdlByteCount(pMdl))
     1398            cSegs++;
     1399    }
    13961400    return cSegs;
    13971401}
     
    16181622        }
    16191623        ULONG cbSrc = MmGetMdlByteCount(pMdl);
     1624        if (cbSrc == 0)
     1625            continue; /* Skip empty MDLs (see @bugref{9233}) */
     1626
    16201627        if (uOffset)
    16211628        {
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