Changeset 734dfb1 for lib


Ignore:
Timestamp:
10/20/05 15:33:21 (16 years ago)
Author:
Daniel Lawson <dlawson@…>
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:
5496a87
Parents:
d3ff1fb
Message:

fixed bad assertion on rlen/wlen checking - ntohs() was needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_erf.c

    r641dc7c r734dfb1  
    502502        buffer2 = buffer + dag_record_size;
    503503        /* If your trace is legacy, or corrupt, then this assert may fire. */
    504         assert(((dag_record_t *)buffer)->rlen <=
    505                         ((dag_record_t*)buffer)->wlen+sizeof(dag_record_t));
     504        assert(ntohs(((dag_record_t *)buffer)->rlen) <=
     505                        ntohs(((dag_record_t*)buffer)->wlen)+dag_record_size);
    506506        /* If it's an unknown type, your trace is legacy */
    507507        assert(((dag_record_t *)buffer)->type != 0);
Note: See TracChangeset for help on using the changeset viewer.