Changeset 3038cd2


Ignore:
Timestamp:
10/06/10 13:36:25 (10 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
5f329ab
Parents:
7e8a25a
Message:
  • Make sure the tcp->doff field is not corrupt when determining payload length
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/protocols_transport.c

    r7e8a25a r3038cd2  
    105105                                return 0;
    106106                        tcp = (libtrace_tcp_t *)layer;
     107                       
     108                        if (len < (size_t)(4 * tcp->doff))
     109                                return 0;
     110                       
    107111                        len -= (4 * tcp->doff);
    108112                        break;
Note: See TracChangeset for help on using the changeset viewer.