Public bug reported:

finfo does not reference any data during hash table insert so glib hash
routines reference unitialized memory causing a crash:

Here's a patch:
     g_hash_table_remove_all (uon->public);
     for (l = files; l != NULL; l = l->next) {
-      SyncdaemonFileInfo *finfo;
+      SyncdaemonFileInfo *finfo = (SyncdaemonFileInfo *) l->data;
 
       g_hash_table_insert (uon->public,
                           g_strdup (syncdaemon_file_info_get_path (finfo)),

** Affects: ubuntuone-client
     Importance: High
     Assignee: Rodrigo Moya (rodrigo-moya)
         Status: In Progress

** Affects: ubuntuone-client (Ubuntu)
     Importance: High
     Assignee: Rodrigo Moya (rodrigo-moya)
         Status: Confirmed


** Tags: desktop+ u1-maverick

** Also affects: ubuntuone-client (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: ubuntuone-client (Ubuntu)
       Status: New => Confirmed

** Changed in: ubuntuone-client (Ubuntu)
   Importance: Undecided => High

** Changed in: ubuntuone-client (Ubuntu)
     Assignee: (unassigned) => Rodrigo Moya (rodrigo-moya)

** Changed in: ubuntuone-client (Ubuntu)
    Milestone: None => ubuntu-10.10

-- 
ubuntuone-nautilus crashes in PublicFilesList callback
https://bugs.launchpad.net/bugs/627329
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to