]> git.eshelyaron.com Git - emacs.git/commitdiff
Use malloc_default_zone to determine the size of pointers alloced in unexec
authorSteven Tamm <steventamm@mac.com>
Sun, 24 Nov 2002 22:56:59 +0000 (22:56 +0000)
committerSteven Tamm <steventamm@mac.com>
Sun, 24 Nov 2002 22:56:59 +0000 (22:56 +0000)
space instead of using possibly invalid emacs_zone pointers.  This fixes
the binary incompatibility problems caused by updates to libSystem.B

src/ChangeLog
src/unexmacosx.c

index e202320f0d6a7d42a6ad4f2887d9e5be58d50943..245b6fd8a956958f6f82169fa76eddba7bd866ac 100644 (file)
@@ -1,3 +1,10 @@
+2002-11-24  Steven Tamm  <steventamm@mac.com>
+
+       * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
+       determine the size of pointers alloced in unexed space instead
+       of using possibly invalid emacs_zone pointers.  This fixes the
+       binary incompatibility problems caused by updates to libSystem.B.
+
 2002-11-24  Richard M. Stallman  <rms@gnu.org>
 
        * search.c (Fstring_match): Doc fix.
index da4b82b6ca9884dfebb7cfba53e3311bd3315565..d9c91e5abb0ba4f0774ec8aa37c45064cfc0f8e6 100644 (file)
@@ -888,7 +888,7 @@ unexec_realloc (void *old_ptr, size_t new_size)
        /* 2002-04-15 T. Ikegami <ikegami@adam.uprr.pr>.  The original
           code to get size failed to reallocate read_buffer
           (lread.c).  */
-       int old_size = emacs_zone->size (emacs_zone, old_ptr);
+       int old_size = malloc_default_zone()->size (emacs_zone, old_ptr);
        int size = new_size > old_size ? old_size : new_size;
 
        if (size)