View Issue Details

IDProjectCategoryView StatusLast Update
0002037gnunet-gtkgnunet-fs-gtkpublic2011-12-26 22:28
ReporterChristian Grothoff Assigned ToChristian Grothoff  
PriorityhighSeveritymajorReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.1Fixed in Version0.9.1 
Summary0002037: use after free upon close of master publish dialog (valgrind)
Description=24385== Invalid read of size 4
==24385== at 0x5AB9F5B: GNUNET_FS_uri_destroy (fs_uri.c:690)
==24385== by 0x41A83F: free_pseudonym_tree_store (gnunet-fs-gtk-main_window_file_publish.c:1655)
==24385== by 0x41A883: free_pseudonym_tree_store (gnunet-fs-gtk-main_window_file_publish.c:1667)
==24385== by 0x41ACAB: hide_master_publish_dialog (gnunet-fs-gtk-main_window_file_publish.c:1778)
==24385== by 0x41AD81: GNUNET_GTK_master_publish_dialog_execute_button_clicked_cb (gnunet-fs-gtk-main_window_file_publish.c:1801)
==24385== by 0x7CCD47D: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.2400.2)
==24385== by 0x7CE33F6: ??? (in /usr/lib/libgobject-2.0.so.0.2400.2)
==24385== by 0x7CE4A75: g_signal_emit_valist (in /usr/lib/libgobject-2.0.so.0.2400.2)
==24385== by 0x7CE4FC2: g_signal_emit (in /usr/lib/libgobject-2.0.so.0.2400.2)
==24385== by 0x5D5B284: ??? (in /usr/lib/libgtk-x11-2.0.so.0.2000.1)
==24385== by 0x7CCD47D: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.2400.2)
==24385== by 0x7CE2CC0: ??? (in /usr/lib/libgobject-2.0.so.0.2400.2)
==24385== Address 0x12ff3f90 is 0 bytes inside a block of size 2 alloc'd
==24385== at 0x4C244E8: malloc (vg_replace_malloc.c:236)
==24385== by 0x855D534: g_malloc (in /lib/libglib-2.0.so.0.2400.2)
==24385== by 0x8574DDD: g_strdup (in /lib/libglib-2.0.so.0.2400.2)
==24385== by 0x7CF3CEC: ??? (in /usr/lib/libgobject-2.0.so.0.2400.2)
==24385== by 0x5EDF72E: gtk_tree_model_get_valist (in /usr/lib/libgtk-x11-2.0.so.0.2000.1)
==24385== by 0x5EDF978: gtk_tree_model_get (in /usr/lib/libgtk-x11-2.0.so.0.2000.1)
==24385== by 0x41A82A: free_pseudonym_tree_store (gnunet-fs-gtk-main_window_file_publish.c:1653)
==24385== by 0x41A883: free_pseudonym_tree_store (gnunet-fs-gtk-main_window_file_publish.c:1667)
==24385== by 0x41ACAB: hide_master_publish_dialog (gnunet-fs-gtk-main_window_file_publish.c:1778)
==24385== by 0x41AD81: GNUNET_GTK_master_publish_dialog_execute_button_clicked_cb (gnunet-fs-gtk-main_window_file_publish.c:1801)
==24385== by 0x7CCD47D: g_closure_invoke (in /usr/lib/libgobject-2.0.so.0.2400.2)
==24385== by 0x7CE33F6: ??? (in /usr/lib/libgobject-2.0.so.0.2400.2)
TagsNo tags attached.

Activities

Christian Grothoff

2011-12-26 20:42

manager   ~0005210

The GNUNET_GTK_pseudonym_tree_store has a 'char *' for the 3rd column (uri-as-string), but this code treats it as if it was a 'struct GNUNET_FS_Uri' when cleaning up. Fixed in SVN 18831.

Issue History

Date Modified Username Field Change
2011-12-26 18:08 Christian Grothoff New Issue
2011-12-26 20:42 Christian Grothoff Note Added: 0005210
2011-12-26 20:42 Christian Grothoff Status new => resolved
2011-12-26 20:42 Christian Grothoff Resolution open => fixed
2011-12-26 20:42 Christian Grothoff Assigned To => Christian Grothoff
2011-12-26 20:42 Christian Grothoff Fixed in Version => 0.9.1
2011-12-26 22:28 Christian Grothoff Status resolved => closed