Bug in glib 1.1.2



     Hello!

     This is bug I found in glib 1.1.2:

     There is no test in the function g_tree_new() whether the key_compare_func
parameter is NULL. If it is so after second insert to the tree the
g_tree_node_insert() function tries to call that compare function, but it
causes (of course) segmentation fault. 

     Fix is simple: insert the
  g_return_if_fail (key_compare_func != NULL);
line into g_tree_new, or provide standard key comparsion function.

					Michal Kara alias lemming



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]