]> git.ipfire.org Git - thirdparty/mtr.git/commit
Fix https://github.com/traviscross/mtr/issues/475 527/head
authorMarek Küthe <m.k@mk16.de>
Sat, 15 Feb 2025 22:21:13 +0000 (22:21 +0000)
committerMarek Küthe <m.k@mk16.de>
Sat, 15 Feb 2025 22:21:13 +0000 (22:21 +0000)
commit0f96f02f46d8d72603535c9e1481f245c0ebe2e7
tree9984d7757cba0833d14ff311142b692c9279d868
parentf16fcbc415bffafcf1164ac9ce1640436e7dd663
Fix https://github.com/traviscross/mtr/issues/475

With an input of `-28` the expression `(-ctl->cpacketsize - MINPACKET)` became 0, which triggered a zero division. This error is fixed by introducing a check to see if there is any room for randomness. Furthermore, a check of the input arguments in the command line and in curses is performed.
ui/curses.c
ui/mtr.c
ui/net.c