diff options
| author | Eli Zaretskii | 2014-05-29 17:52:47 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-05-29 17:52:47 +0300 |
| commit | 0bbb27fc3f52f87605cfadba62d52b72523b73a5 (patch) | |
| tree | facc4efc43f9ab259ab7f26c0bdb44afe52f9c0c /lib-src | |
| parent | 609b06a0a1649b9bbcc6ffe0ac96a4192f855603 (diff) | |
| download | emacs-0bbb27fc3f52f87605cfadba62d52b72523b73a5.tar.gz emacs-0bbb27fc3f52f87605cfadba62d52b72523b73a5.zip | |
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.
Diffstat (limited to 'lib-src')
0 files changed, 0 insertions, 0 deletions