Skip to content

Commit

Permalink
fixed SPB writing of block header beyond borders
Browse files Browse the repository at this point in the history
  • Loading branch information
rke committed Jun 24, 2021
1 parent 2fe168e commit fa661a9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pcapng.c
Expand Up @@ -1544,7 +1544,6 @@ int fix_pcapng(FILE *pcap, FILE *pcap_fix) {
/* this block type is valid */

/* write sizes of block header to correct positions */
block_pos += sizeof(bh.total_length);
memcpy(new_block+4, &block_pos, sizeof(bh.total_length));
memcpy(new_block+block_pos-4, &block_pos, sizeof(bh.total_length));

Expand Down

0 comments on commit fa661a9

Please sign in to comment.