VirtualBox

Changeset 95592 in vbox for trunk/include


Ignore:
Timestamp:
Jul 11, 2022 10:32:41 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
152228
Message:

PDM/network, Network/virtio: Add sanity checking. bugref:10240

File:
1 edited

Legend:

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

    r93115 r95592  
    148148    /* Make sure the segment size is enough to fit a UDP header. */
    149149    if (RT_LIKELY(enmType != PDMNETWORKGSOTYPE_IPV4_UDP || pGso->cbMaxSeg >= RTNETUDP_MIN_LEN))
     150    { /* likely */ } else return false;
     151
     152    /* Make sure the segment size is not zero. */
     153    if (RT_LIKELY(pGso->cbMaxSeg > 0))
    150154    { /* likely */ } else return false;
    151155
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