From 84e31cae82e56940e959efa5adc57a1f0a21468f Mon Sep 17 00:00:00 2001 From: h_vogt Date: Sun, 13 Dec 2015 10:21:52 +0100 Subject: [PATCH] xspice/icm/digital/d_source/cfunc.mod, bug #301, increase MAX_STRING_SIZE for input file reading Thats a workaround for a segmentation fault (buffer overrun) caused by too long lines in the input file for a xspice "d_source" Thanks to Siddhant Saraf, who reported this in #301 d_source gives wrong error and then SIGSEGV (Address boundary error) http://sourceforge.net/p/ngspice/bugs/301/ --- src/xspice/icm/digital/d_source/cfunc.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xspice/icm/digital/d_source/cfunc.mod b/src/xspice/icm/digital/d_source/cfunc.mod index a9c866c2a..7540ff5d7 100644 --- a/src/xspice/icm/digital/d_source/cfunc.mod +++ b/src/xspice/icm/digital/d_source/cfunc.mod @@ -61,7 +61,7 @@ NON-STANDARD FEATURES /*=== CONSTANTS ========================*/ -#define MAX_STRING_SIZE 200 +#define MAX_STRING_SIZE 1024 /*=== MACROS ===========================*/