diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-11-01 14:40:57 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-11-01 10:59:39 -0800 |
commit | 386e08b69cf9257421d234237c90f29dbb32d4ee (patch) | |
tree | bc798afe66ed3d6ef33a6c102e19715b2a406e65 /core/settings/qPref.cpp | |
parent | b2b3544f3f3c9dc3995a778722a5b2ca4cadd238 (diff) | |
download | subsurface-386e08b69cf9257421d234237c90f29dbb32d4ee.tar.gz |
parser: don't crash when parsing <weight> tags
When encountering a <weight> tag, we would parse into the last
weightsystem. However, we only create weightsystems when
encountering <weightsystem> tag. Therefore, this code would
either crash or overwrite the previous weightsystem.
Instead, create a new weightsystem for each <weight> tag.
Moreover, make sure that inside a <weightsystem> tag a
weightsystem actually exists. This should be the case,
but who knows...?
Reported-by: Nihal Gabr <gabr.nihal@gmail.com>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/settings/qPref.cpp')
0 files changed, 0 insertions, 0 deletions