Avoid buffer text relocations in calls to STRING_CHAR_* macros.
authorEli Zaretskii <eliz@gnu.org>
Mon, 28 May 2012 16:50:10 +0000 (19:50 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 28 May 2012 16:50:10 +0000 (19:50 +0300)
commit291d430f5f184c8a9438eace09b141131de343e8
tree6310a9eb6bbf4643505fa67d0b012dad81624aa0
parente383e32d7a00bf286db1dc6b05b6219f0eaab8dc
Avoid buffer text relocations in calls to STRING_CHAR_* macros.

 src/charset.c (maybe_unify_char): Inhibit relocation of buffer text
 for the duration of call to load_charset, to avoid problems with
 callers of maybe_unify_char that access buffer text through C
 pointers.
 src/ralloc.c (r_alloc_inhibit_buffer_relocation): Increment and
 decrement the inhibition flag, instead of just setting or
 resetting it.

Fixes: debbugs:11519
src/ChangeLog
src/charset.c
src/ralloc.c