summaryrefslogtreecommitdiff
path: root/color.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2012-05-31 21:40:55 +0000
committerGerald Combs <gerald@wireshark.org>2012-05-31 21:40:55 +0000
commit698ad5bd95c62005fb049b71475844889836210e (patch)
treed3fe2303952ce7e10fc80f1d1700a5cec4e972f4 /color.h
parent5690373d48d78a5380d1d20b86a6db9a6235cc86 (diff)
downloadwireshark-698ad5bd95c62005fb049b71475844889836210e.tar.gz
From Martin Kaiser via bug 7312:
there's three coverity defects about division by zero in ui/cli/tap-iostat.c, function iostat_packet() This can be triggered from the command line martin@greta# ./tshark -z io,stat,0.2,AVG\(frame.number\) Capturing on eth0 Floating point exception it->num is 0, wireshark crashes in parent->max_vals[it->colnum] = MAX(parent->max_vals[it->colnum], it->counter/it->num); (and similar for other data types) My proposal for a fix is to not update parent->max_vals[it->colnum] when it->num==0, see the attached patch. svn path=/trunk/; revision=42952
Diffstat (limited to 'color.h')
0 files changed, 0 insertions, 0 deletions