VirtualBox

Ignore:
Timestamp:
May 8, 2007 11:19:16 AM (18 years ago)
Author:
vboxsync
Message:

Make sure the packet is large enough to receive the data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r1856 r2533  
    655655            return;
    656656        /* Note: we add to align the IP header */
     657        if (M_FREEROOM(m) < pkt_len + 2) {
     658            m_inc(m, pkt_len + 2);
     659        }
    657660        m->m_len = pkt_len + 2;
    658661        memcpy(m->m_data + 2, pkt, pkt_len);
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