Skip to content

Commit

Permalink
Merge pull request #596 from appneta/Bug_#570_divide_by_zero_fuzzing
Browse files Browse the repository at this point in the history
Bug #570 divide by zero fuzzing
  • Loading branch information
fklassen authored Jun 3, 2020
2 parents f35e77b + 9327618 commit f288981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Use after free in get_ipv6_next (#578)
- Heap Buffer Overflow in git_ipv6_next (#576)
- Increase max snaplen to 262144 (#571)
- Fix divide by zero in fuzzing (#570)
- Heap Buffer Overflow in do_checksum (#556) (#577)
- Fix GCC v10 warnings (#555)

Expand Down
2 changes: 1 addition & 1 deletion src/tcpedit/fuzzing.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ fuzzing(tcpedit_t *tcpedit, struct pcap_pkthdr *pkthdr,
break;
}

if (l4len < 1)
if (l4len <= 1)
goto done;

/* add some additional randomization */
Expand Down

0 comments on commit f288981

Please sign in to comment.