summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornros <nros@pkgsrc.org>2019-09-18 20:21:39 +0000
committernros <nros@pkgsrc.org>2019-09-18 20:21:39 +0000
commit85fee4db7f1b87ce29983d776f9dd3d91f126305 (patch)
treeed6d0d96b7fc277483602d485cf588b9acf2727b
parentf87cc3d207cd73cdb7ad2d69587fd5d67f34a400 (diff)
downloadpkgsrc-85fee4db7f1b87ce29983d776f9dd3d91f126305.tar.gz
Fix crash in netsurf when downloding files.
Fix crash in netsurf when downloading files due to null pointer dereference.
-rw-r--r--www/netsurf/distinfo3
-rw-r--r--www/netsurf/patches/patch-netsurf_frontends_gtk_download.c22
2 files changed, 24 insertions, 1 deletions
diff --git a/www/netsurf/distinfo b/www/netsurf/distinfo
index f4d2f58bc40..20800094a48 100644
--- a/www/netsurf/distinfo
+++ b/www/netsurf/distinfo
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.12 2019/09/12 15:53:02 nros Exp $
+$NetBSD: distinfo,v 1.13 2019/09/18 20:21:39 nros Exp $
SHA1 (netsurf-all-3.9.tar.gz) = 392aa7cf94b303228a00e6887c74e5763a81f3a4
RMD160 (netsurf-all-3.9.tar.gz) = 3f7aff04cfd253f2b18590830b0aa2fca0123b3c
SHA512 (netsurf-all-3.9.tar.gz) = 3223b0a3bc9721ea1a5a81bbabdda11e1d0f63850074a5dea3ea8999e53c92f07228f58befbf10359c028965131426888a8b9595d6c3cd7a5cde33ca256cf987
Size (netsurf-all-3.9.tar.gz) = 8416458 bytes
+SHA1 (patch-netsurf_frontends_gtk_download.c) = 25bbb146ed57ddfc943155b366cb73850e4ff0ac
SHA1 (patch-netsurf_utils_config.h) = de48304e3484a883509ea3ad92658788f7869041
SHA1 (patch-nsgenbind_src_Makefile) = 9024fe193c532fefec83b86a8cf85f1bcffb614e
diff --git a/www/netsurf/patches/patch-netsurf_frontends_gtk_download.c b/www/netsurf/patches/patch-netsurf_frontends_gtk_download.c
new file mode 100644
index 00000000000..39f9f8ee745
--- /dev/null
+++ b/www/netsurf/patches/patch-netsurf_frontends_gtk_download.c
@@ -0,0 +1,22 @@
+$NetBSD: patch-netsurf_frontends_gtk_download.c,v 1.1 2019/09/18 20:21:39 nros Exp $
+* fix crash when downloading files (nullpointer dereference)
+--- netsurf/frontends/gtk/download.c.orig 2019-07-17 15:37:00.000000000 +0000
++++ netsurf/frontends/gtk/download.c
+@@ -89,6 +89,8 @@ struct gui_download_window {
+ GError *error;
+ };
+
++bool nsgtk_download_FALSE = FALSE;
++
+ typedef void (*nsgtk_download_selection_action)(
+ struct gui_download_window *dl,
+ void *user_data);
+@@ -838,7 +840,7 @@ gui_download_window_create(download_cont
+ g_timeout_add(
+ UPDATE_RATE,
+ nsgtk_download_gsourcefunc__nsgtk_download_update,
+- FALSE);
++ (gpointer) &nsgtk_download_FALSE);
+ }
+
+ nsgtk_downloads_list = g_list_prepend(nsgtk_downloads_list, download);