Fix bug #17622 with crashes in mmap routines.
authorEli Zaretskii <eliz@gnu.org>
Thu, 29 May 2014 14:52:47 +0000 (17:52 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 29 May 2014 14:52:47 +0000 (17:52 +0300)
commit0bbb27fc3f52f87605cfadba62d52b72523b73a5
treefacc4efc43f9ab259ab7f26c0bdb44afe52f9c0c
parent609b06a0a1649b9bbcc6ffe0ac96a4192f855603
Fix bug #17622 with crashes in mmap routines.

 src/buffer.c (init_buffer): Accept an argument 'initialized'.
 [USE_MMAP_FOR_BUFFERS]: If 'initialized' is non-zero, reset
 mmap_regions and mmap_fd, to avoid referencing stale data from the
 dump phase.  Add an assertion for buffer text of buffers created
 in temacs before this function is called.
 (mmap_regions_1, mmap_fd_1): Remove unused variables.
 src/lisp.h (init_buffer): Update prototype.
 src/emacs.c (main): Pass 'initialized' as the argument to init_buffer.
src/ChangeLog
src/buffer.c
src/emacs.c
src/lisp.h