diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-20 18:57:50 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-20 21:24:08 -0800 |
commit | bc5f82990df628bf2b28af780e24445ee9b086ee (patch) | |
tree | c561a9c1de39151d2a5c9ac9b4ab6ec1771293b8 /libdivecomputer.c | |
parent | 49b4f7c4acea69bb3075d9555dbd4d58f16a9f56 (diff) | |
download | subsurface-bc5f82990df628bf2b28af780e24445ee9b086ee.tar.gz |
Fix divide-by-zero bug in statistics.c
GET_LOCAL_SAC did not check if the two entries had different time stamps
and could therefore cause a divide-by-zero. x86 doesn't fault on that -
it's still wrong. This now calls a function that does proper checking of
all the values involved in the calculation.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
0 files changed, 0 insertions, 0 deletions