From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-shells/sash/files/sash-3.7-builtin.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app-shells/sash/files/sash-3.7-builtin.patch (limited to 'app-shells/sash/files') diff --git a/app-shells/sash/files/sash-3.7-builtin.patch b/app-shells/sash/files/sash-3.7-builtin.patch new file mode 100644 index 000000000000..be943063efdf --- /dev/null +++ b/app-shells/sash/files/sash-3.7-builtin.patch @@ -0,0 +1,14 @@ +diff -Nrup sash-3.7.orig/sash.c sash-3.7/sash.c +--- sash-3.7.orig/sash.c 2004-01-14 00:08:03.000000000 -0500 ++++ sash-3.7/sash.c 2004-10-31 00:05:59.000000000 -0400 +@@ -739,6 +739,10 @@ tryBuiltIn(const char * cmd) + while (*endCmd && !isBlank(*endCmd)) + endCmd++; + ++ /* FIXME: command line will segv with -c 12000bytes -solar */ ++ if ((endCmd - cmd) >= sizeof(cmdName)) ++ return FALSE; ++ + memcpy(cmdName, cmd, endCmd - cmd); + + cmdName[endCmd - cmd] = '\0'; -- cgit v1.2.3