pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/netsurf Fix crash in netsurf when downloding files.
details: https://anonhg.NetBSD.org/pkgsrc/rev/b3e71dbb54e0
branches: trunk
changeset: 339939:b3e71dbb54e0
user: nros <nros%pkgsrc.org@localhost>
date: Wed Sep 18 20:21:39 2019 +0000
description:
Fix crash in netsurf when downloding files.
Fix crash in netsurf when downloading files due to null pointer dereference.
diffstat:
www/netsurf/distinfo | 3 +-
www/netsurf/patches/patch-netsurf_frontends_gtk_download.c | 22 ++++++++++++++
2 files changed, 24 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r ff870fa16e83 -r b3e71dbb54e0 www/netsurf/distinfo
--- a/www/netsurf/distinfo Wed Sep 18 19:53:11 2019 +0000
+++ b/www/netsurf/distinfo Wed Sep 18 20:21:39 2019 +0000
@@ -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 -r ff870fa16e83 -r b3e71dbb54e0 www/netsurf/patches/patch-netsurf_frontends_gtk_download.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/netsurf/patches/patch-netsurf_frontends_gtk_download.c Wed Sep 18 20:21:39 2019 +0000
@@ -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);
Home |
Main Index |
Thread Index |
Old Index