- Timestamp:
- 01/14/19 17:30:49 (2 years ago)
- Branches:
- develop
- Children:
- 15f32cb
- Parents:
- 6b7a958
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_pcapfile.c
r6b7a958 r5460603 404 404 bytes_to_read = swapl(libtrace,((libtrace_pcapfile_pkt_hdr_t*)packet->buffer)->caplen); 405 405 406 if (bytes_to_read >= LIBTRACE_PACKET_BUFSIZE) { 406 if (bytes_to_read >= (LIBTRACE_PACKET_BUFSIZE - 407 sizeof(libtrace_pcapfile_pkt_hdr_t))) { 407 408 trace_set_err(libtrace, TRACE_ERR_BAD_PACKET, "Invalid caplen in pcap header (%u) - trace may be corrupt", (uint32_t)bytes_to_read); 408 409 return -1;
Note: See TracChangeset
for help on using the changeset viewer.