GNOME Bugzilla – Bug 320169
Bookmark menu crashes when all topics are deleted
Last modified: 2005-10-30 13:52:55 UTC
Remove all the topics, try to open the bookmark menu:
+ Trace 63779
Thread 1 (Thread -1227123008 (LWP 14578))
Created attachment 54068 [details] [review] Patch to prevent running off end of array. I forgot an array bounds check. The loop was otherwise guaranteed to finish safely, so long as one topic existed. The bounds check isn't quite necessary (testing parents->len==0 is sufficient), but is the safest way to go.
Thanks for the patch! Fixed in cvs.