VirtualBox

Changeset 85149 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 9, 2020 10:45:32 AM (5 years ago)
Author:
vboxsync
Message:

Yet another build fix for r139093.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmnetinline.h

    r85148 r85149  
    543543            if (iSeg == 0)
    544544            {
    545                 if (pGso->offHdr2 + sizeof(uint16_t) > cbFrame)
    546                     return 0; /* Incomplete UDP header! */
     545                Assert(pGso->offHdr2 + sizeof(uint16_t) <= cbFrame);
    547546                /* uh_ulen cannot exceed cbFrame - pGso->offHdr2 (offset of UDP header) */
    548547                if ((unsigned)(pGso->offHdr2 + RT_BE2H_U16(((PCRTNETUDP)&pbFrame[pGso->offHdr2])->uh_ulen)) > cbFrame)
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