[packages/guile1: 101/172] - don't use old pointer after realloc(); fixes crash caught on amd64

jajcus jajcus at pld-linux.org
Sat Dec 12 13:47:16 CET 2015


commit 22e2710e1a27318c4623f529bbdc9154d87f5ed3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon May 24 20:10:35 2004 +0000

    - don't use old pointer after realloc(); fixes crash caught on amd64
    
    Changed files:
        guile-realloc.patch -> 1.1

 guile-realloc.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)
---
diff --git a/guile-realloc.patch b/guile-realloc.patch
new file mode 100644
index 0000000..eea6989
--- /dev/null
+++ b/guile-realloc.patch
@@ -0,0 +1,12 @@
+--- guile-1.6.4/libguile/gc.c.orig	2004-05-24 21:54:13.755811688 +0200
++++ guile-1.6.4/libguile/gc.c	2004-05-24 21:53:44.038032247 +0200
+@@ -1129,6 +1129,9 @@
+   /* FIXME: we should have a means to register C functions to be run
+    * in different phases of GC
+    */
++  /* don't try to use scm_subr_table during its reallocation
++   * (when scm_subr_table still points to old memory area after realloc() call) */
++  if (strcmp(what, "scm_subr_table") != 0)
+   scm_mark_subr_table ();
+ 
+ #ifndef USE_THREADS
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/guile1.git/commitdiff/ebe6c26bec9cbe3813afc2be58f989889f8e944a



More information about the pld-cvs-commit mailing list