diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2015-11-29 12:32:11 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2015-11-29 12:32:11 +0000 |
commit | 02bda760051dbe85a8ebda9cc6e71f2dfa066627 (patch) | |
tree | 3f44b3bdbf7659cb6cea67b9e09fa5efbf6e10db /usr.bin | |
parent | c8e84424cbcd05052de7ca87d69c6c3283503e8e (diff) |
Doubles are not reals. Imprecision might lead to trying to
calculate square root of a negative number. Just use 0 in this case.
Pointed out by and fix from Nathanael Rensen ( nathanael AT list DOT
polymorpheus DOT com ), thanks!
OK deraadt@
(Funnily this bug was in ping6 for many years, only discovered once I
synced ping to the ping6 implementation recently.)
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions