summaryrefslogtreecommitdiffstats
path: root/core/configuredivecomputer.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-07-18 12:51:47 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-07-19 10:13:51 -0700
commit82f967ddb37022a69be2de3f38ac445093c0d6df (patch)
tree5f0364680db0f2902b34169600668929ebdab630 /core/configuredivecomputer.h
parent361678dcbea78d5d4155439eb90936e3f0f36114 (diff)
downloadsubsurface-82f967ddb37022a69be2de3f38ac445093c0d6df.tar.gz
core: sanitize pressure-sensor cylinder ids in fixup_dive()
The code will happily perform out-of-bound accesses if pressure-sensors refer to non-existing cylinders. Therefore, sanitize these values in fixup_dive(), which is called everytime a dive is loaded or imported. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/configuredivecomputer.h')
0 files changed, 0 insertions, 0 deletions