VirtualBox

Ignore:
Timestamp:
Oct 30, 2018 6:29:31 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126247
Message:

Net/Win: bugref:9280 bugref:9233 Changed back the order of offset/truncate handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/win/VBoxNetAdp-win.cpp

    r75122 r75169  
    526526        }
    527527
    528         if (cbSrc > cbPacket)
    529             cbSrc = cbPacket;
    530 
     528        /* Handle the offset in the current (which is the first for us) MDL */
    531529        if (uOffset)
    532530        {
     
    539537            else
    540538            {
    541                 uOffset -= cbSrc;
    542                 continue;
     539                /* This is an invalid MDL chain */
     540                vboxNetAdpWinDestroySG(pSG);
     541                return NULL;
    543542            }
    544543        }
     544
     545        /* Do not read the last MDL beyond packet's end */
     546        if (cbSrc > cbPacket)
     547            cbSrc = cbPacket;
    545548
    546549        Assert(cSegs < pSG->cSegsAlloc);
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