summaryrefslogtreecommitdiff
path: root/debian/patches/src_libgo_runtime_go-caller.c.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-05-13 13:54:49 +0300
commit42156b5190f4fa150e1fab6777eb81e69d4db8c9 (patch)
tree3bf47de81cf1f89892789535a036d2d55d93a136 /debian/patches/src_libgo_runtime_go-caller.c.diff
downloadgcc-6-42156b5190f4fa150e1fab6777eb81e69d4db8c9.tar.gz
Imported gcc-6 (6.3.0-17)debian/6.3.0-17debian
Diffstat (limited to 'debian/patches/src_libgo_runtime_go-caller.c.diff')
-rw-r--r--debian/patches/src_libgo_runtime_go-caller.c.diff14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/src_libgo_runtime_go-caller.c.diff b/debian/patches/src_libgo_runtime_go-caller.c.diff
new file mode 100644
index 0000000..6561a53
--- /dev/null
+++ b/debian/patches/src_libgo_runtime_go-caller.c.diff
@@ -0,0 +1,14 @@
+Index: gcc/src/libgo/runtime/go-caller.c
+===================================================================
+--- gcc/src/libgo/runtime/go-caller.c (révision 235086)
++++ gcc/src/libgo/runtime/go-caller.c (copie de travail)
+@@ -93,7 +93,7 @@
+ argv[0] (http://gcc.gnu.org/PR61895). It would be nice to
+ have a better check for whether this file is the real
+ executable. */
+- if (stat (filename, &s) < 0 || s.st_size < 1024)
++ if (filename != NULL && (stat (filename, &s) < 0 || s.st_size < 1024))
+ filename = NULL;
+
+ back_state = backtrace_create_state (filename, 1, error_callback, NULL);
+