diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2016-04-28 17:33:05 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-04-29 09:07:59 -0700 |
commit | cae99471adc7532db34c365ee729a1ea7ffea204 (patch) | |
tree | d89c4c075bad87bda4da440b7cad3385b575bcad /core/imagedownloader.cpp | |
parent | 56ed3f1c6119b9ac86f602455d54318623640056 (diff) | |
download | subsurface-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/imagedownloader.cpp')
0 files changed, 0 insertions, 0 deletions