summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-20 07:44:45 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-20 07:44:45 -0800
commit51345e4ad828918a4e20b6aba40c3b0a137b1e73 (patch)
treedc4507aadf8ab3efc0e6f5a936fcd90223bd1610 /dive.h
parent9c5e037a612808a9ad1d2c9f8e6ec7213d5d468b (diff)
downloadsubsurface-51345e4ad828918a4e20b6aba40c3b0a137b1e73.tar.gz
Fix potential crash in the per tank sac calculation
In an inconsistant XML file (like our own dives/test20.xml) it is possible that a gas change event refers to a non-existing gas. In that case get_gasidx returns -1 - which we shouldn't use as index into the arrays. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
0 files changed, 0 insertions, 0 deletions