Public bug reported:

The tooltip generation code need small patch:

```
diff -ur duc-1.4.5/src/libduc-graph/graph.c 
../2/duc-1.4.5/src/libduc-graph/graph.c
--- duc-1.4.5/src/libduc-graph/graph.c  2022-07-23 20:32:05.000000000 +0300
+++ ../2/duc-1.4.5/src/libduc-graph/graph.c     2025-09-03 16:13:22.335022476 
+0300
@@ -207,15 +207,12 @@
        char *typ = duc_file_type_name(type);
        char *p = g->tooltip_msg;
        int l = sizeof(g->tooltip_msg);
-       if(name) {
-               p += snprintf(p, l, "name: %s\n", name);
-       }
-       p += snprintf(p, l, 
-                       "type: %s\n"
-                       "actual size: %s\n"
-                       "apparent size: %s\n"
-                       "file count: %s",
-                       typ, siz_act, siz_app, siz_cnt);
+       snprintf(p, l, "name: %s\n"
+                       "type: %s\n"
+                        "actual size: %s\n"
+                        "apparent size: %s\n"
+                        "file count: %s", name ? name : "", typ, siz_act, 
siz_app, siz_cnt);
+
 }
```

** Affects: duc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2121945

Title:
  duc gui segfaults with SIGABRT during directory hover (tooltip)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/duc/+bug/2121945/+subscriptions


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

Reply via email to