# HG changeset patch # User Steven Tamm # Date 1038178619 0 # Node ID e2e2249bea096973316771d0a2feef370d88b3bc # Parent 4128ae2ce1417aff0e6881d96b4c8b1d767ee70c Use malloc_default_zone to determine the size of pointers alloced in unexec space instead of using possibly invalid emacs_zone pointers. This fixes the binary incompatibility problems caused by updates to libSystem.B diff -r 4128ae2ce141 -r e2e2249bea09 src/ChangeLog --- a/src/ChangeLog Sun Nov 24 19:08:21 2002 +0000 +++ b/src/ChangeLog Sun Nov 24 22:56:59 2002 +0000 @@ -1,3 +1,10 @@ +2002-11-24 Steven Tamm + + * 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 * search.c (Fstring_match): Doc fix. diff -r 4128ae2ce141 -r e2e2249bea09 src/unexmacosx.c --- a/src/unexmacosx.c Sun Nov 24 19:08:21 2002 +0000 +++ b/src/unexmacosx.c Sun Nov 24 22:56:59 2002 +0000 @@ -888,7 +888,7 @@ /* 2002-04-15 T. Ikegami . 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)