tcsh: fix out of memory crash
authorNuno Goncalves <nunojpg@gmail.com>
Thu, 26 Oct 2017 12:40:52 +0000 (14:40 +0200)
committerNuno Goncalves <nunojpg@gmail.com>
Thu, 26 Oct 2017 12:40:52 +0000 (14:40 +0200)
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
utils/tcsh/Makefile
utils/tcsh/patches/001-sysmalloc.patch [new file with mode: 0644]

index 606a96a4e15bbcc4ffe4937c013dfae203473382..4f22824752697fa1835ebabba5490a6ae75851d8 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2011-2016 OpenWrt.org
+# Copyright (C) 2011-2017 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tcsh
 PKG_VERSION:=6.20.00
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:= \
diff --git a/utils/tcsh/patches/001-sysmalloc.patch b/utils/tcsh/patches/001-sysmalloc.patch
new file mode 100644 (file)
index 0000000..b22c018
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/config_f.h               
++++ b/config_f.h
+@@ -139,11 +139,8 @@
+  *            This can be much slower and no memory statistics will be
+  *            provided.
+  */
+-#if defined(__MACHTEN__) || defined(PURIFY) || defined(MALLOC_TRACE) || defined(_OSD_POSIX) || defined(__MVS__) || defined (__CYGWIN__) || defined(__GLIBC__) || defined(__OpenBSD__) || defined(__APPLE__) || defined (__ANDROID__)
++
+ # define SYSMALLOC
+-#else
+-# undef SYSMALLOC
+-#endif
+ /*
+  * USE_ACCESS Use access(2) rather than stat(2) when POSIX is defined.