summaryrefslogtreecommitdiffstats
path: root/qt-models/diveimportedmodel.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-06-14 01:45:18 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-15 14:48:49 -0700
commit27deb317b00aa61bedea8d781d8cff8be9a3720e (patch)
tree4b5ba530f10b702ec4b779e4a269022ffcd16963 /qt-models/diveimportedmodel.h
parent85021b94b163e955a3b7d038d3652ecda11fe7eb (diff)
downloadsubsurface-27deb317b00aa61bedea8d781d8cff8be9a3720e.tar.gz
tankinfomodel.cpp: clamp row index to [0 - MAX_TANK_INFO]
MAX_TANK_INFO is a new macro in dive.h to define the maximum number of tank_info_t objects. TankInfoModel's data() and setData() now check for valid row indexes before accessing the tank_info[] array directly. Without this patch TankInfoMode::data() can cause a SIGSEGV. Reported-by: Pedro Neves <nevesdiver@gmail.com> Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/diveimportedmodel.h')
0 files changed, 0 insertions, 0 deletions