summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2016-04-28 17:33:05 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-04-29 09:07:59 -0700
commitcae99471adc7532db34c365ee729a1ea7ffea204 (patch)
treed89c4c075bad87bda4da440b7cad3385b575bcad /core
parent56ed3f1c6119b9ac86f602455d54318623640056 (diff)
downloadsubsurface-cae99471adc7532db34c365ee729a1ea7ffea204.tar.gz
CylindersModel: clamp the "cylinderuse" values
If the value for "use" is negative or larger than the number of elements in "enum cylinderuse", later CylindersModel::data() can request a string in the lines of cylinderuse_text[cyl->cylinder_use], which can SIGSEGV. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
0 files changed, 0 insertions, 0 deletions