diff options
author | Marius Bakke <marius@gnu.org> | 2022-02-13 14:24:53 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-02-13 14:24:53 +0100 |
commit | 76b6bbdf232b4b82cdd23cfe0d81331a4fd2edec (patch) | |
tree | 0e6a57ba08b9c6f9f5cbcdc5b5d9daeea91e428d /gnu/packages/patches/dunst-1.7.3-fix-crash.patch | |
parent | 1a5302435ff0d2822b823f5a6fe01faa7a85c629 (diff) | |
parent | e8af2ea63a7f497b8f8e19e206645109c0646e72 (diff) |
Merge branch 'master' into staging
Diffstat (limited to 'gnu/packages/patches/dunst-1.7.3-fix-crash.patch')
-rw-r--r-- | gnu/packages/patches/dunst-1.7.3-fix-crash.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/patches/dunst-1.7.3-fix-crash.patch b/gnu/packages/patches/dunst-1.7.3-fix-crash.patch new file mode 100644 index 0000000000..8b51d820a4 --- /dev/null +++ b/gnu/packages/patches/dunst-1.7.3-fix-crash.patch @@ -0,0 +1,21 @@ +Author: Danny Milosavljevic <dannym@scratchpost.org> +Date: 2022-02-04 21:52:05 CET + +Fix crash if notification contains invalid pixbuf data. + +diff -ru /gnu/store/5885czxhmhkckjqj939b0hd6b6czizwb-dunst-1.7.3-checkout/src/notification.c 5885czxhmhkckjqj939b0hd6b6czizwb-dunst-1.7.3-checkout/src/notification.c +--- /gnu/store/5885czxhmhkckjqj939b0hd6b6czizwb-dunst-1.7.3-checkout/src/notification.c 1970-01-01 01:00:01.000000000 +0100 ++++ 5885czxhmhkckjqj939b0hd6b6czizwb-dunst-1.7.3-checkout/src/notification.c 2022-02-04 19:05:57.534906600 +0100 +@@ -359,8 +359,10 @@ + g_clear_pointer(&n->icon_id, g_free); + + GdkPixbuf *icon = icon_get_for_data(new_icon, &n->icon_id, draw_get_scale()); +- n->icon = gdk_pixbuf_to_cairo_surface(icon); +- g_object_unref(icon); ++ if (icon) { ++ n->icon = gdk_pixbuf_to_cairo_surface(icon); ++ g_object_unref(icon); ++ } + } + + /* see notification.h */ |