GNOME Bugzilla – Bug 694232
gog_line_view_render: use of vals
Last modified: 2013-02-20 15:41:42 UTC
What ensures that vals[i] as used on line 607 refers to a defined value?
Ditto lengths[i] on 614?
vals[i] and lengths[i] seems always initialized or I'm missing the obvious. What's wrong on line 607 is that j might be larger than length[i]. Strange that this bug went unnoticed for 10 years (may be this plot type is not used a lot).
You're right, they are initialized. At least if model->base.series is in sync with model->num_series. Let's assume that here.
If they are not in sync, it's a bug num_series caches the series number. Fixed the use of extra values though. This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.