diff options
author | Henrik Brautaset Aronsen <subsurface@henrik.synth.no> | 2013-01-29 22:30:02 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-30 12:06:33 +1100 |
commit | 9b47dc1f5920be228d2b4e6b91f361a52d40eb87 (patch) | |
tree | 7f68c38eec757ae1905d343e21f405d6a902cfca /divelist.c | |
parent | e3a8ed5183ed5a24e391395c9faeae03dc9e4a6a (diff) | |
download | subsurface-9b47dc1f5920be228d2b4e6b91f361a52d40eb87.tar.gz |
Make sure imported rating and visibility are within limits.
The "visibility" value in MacDive XML files could be a random
string, while it's a value of 0-5 in Subsurface. Importing an
illegal value (such as "11m") resulted in a segfault from
libpangocairo and an "Invalid UTF-8 string passed to
pango_layout_set_text()".
[Dirk Hohndel: fixed int * vs. int issue]
Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
0 files changed, 0 insertions, 0 deletions