Revision: 2633
http://sourceforge.net/p/fricas/code/2633
Author: whebisch
Date: 2020-03-04 17:56:05 +0000 (Wed, 04 Mar 2020)
Log Message:
-----------
Prevent heap buffer overflow
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/sman/sman.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2020-03-04 17:40:25 UTC (rev 2632)
+++ trunk/ChangeLog 2020-03-04 17:56:05 UTC (rev 2633)
@@ -1,3 +1,7 @@
+2020-03-04 Neven Sajko <
nsa...@gmail.com>
+
+ * src/sman/sman.c: Prevent heap buffer overflow
+
2020-03-04 Waldek Hebisch <
heb...@math.uni.wroc.pl>
* src/algebra/nlode.spad: Better recognize
Modified: trunk/src/sman/sman.c
===================================================================
--- trunk/src/sman/sman.c 2020-03-04 17:40:25 UTC (rev 2632)
+++ trunk/src/sman/sman.c 2020-03-04 17:56:05 UTC (rev 2633)
@@ -564,7 +564,7 @@
perror("setting the term buffer");
exit(-1);
}
- augmented_ws_path = (char *)malloc(2 * strlen(ws_path) + strlen(eval_code) + strlen(" -- ") + 1);
+ augmented_ws_path = (char *)malloc(2 * strlen(ws_path) + strlen(eval_code) + strlen(" -- ") + strlen(" ") + 1);
strcpy(augmented_ws_path,ws_path); /* write the name */
/* Pass '--' to make sure that argument(s) passed to FRICASsys
do not cause trouble from host Lisp (Closure CL would
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.