aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2012-02-20 15:09:58 -0800
committerPaul Eggert2012-02-20 15:09:58 -0800
commit310f5bd4294ec3624b425e2c27da6fc730d0e928 (patch)
treeb1989e75f50a4c50c9b5fe34b698c93c2abec7ff /src/ChangeLog
parent132b9726f60888f990e6174ce430769eb9dda986 (diff)
downloademacs-310f5bd4294ec3624b425e2c27da6fc730d0e928.tar.gz
emacs-310f5bd4294ec3624b425e2c27da6fc730d0e928.zip
Fix crash due to non-contiguous EMACS_INT (Bug#10780).
* lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it. (USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS == 0. It's useless in that case, and it can cause problems on hosts that allocate halves of EMACS_INT values separately. Reported by Dan Horák. Diagnosed by Andreas Schwab in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10780#30>. * mem-limits.h (EXCEEDS_LISP_PTR): Define to 0 on hosts where UINTPTR_MAX >> VALBITS == 0. This is required by the above change; it avoids undefined behavior on hosts where shifting right by more than the word width has undefined behavior.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3716aee7d69..911799b2bd2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,17 @@
12012-02-20 Paul Eggert <eggert@cs.ucla.edu>
2
3 Fix crash due to non-contiguous EMACS_INT (Bug#10780).
4 * lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it.
5 (USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS == 0.
6 It's useless in that case, and it can cause problems on hosts
7 that allocate halves of EMACS_INT values separately.
8 Reported by Dan Horák. Diagnosed by Andreas Schwab in
9 <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10780#30>.
10 * mem-limits.h (EXCEEDS_LISP_PTR): Define to 0 on hosts where
11 UINTPTR_MAX >> VALBITS == 0. This is required by the above change;
12 it avoids undefined behavior on hosts where shifting right by more
13 than the word width has undefined behavior.
14
12012-02-19 Chong Yidong <cyd@gnu.org> 152012-02-19 Chong Yidong <cyd@gnu.org>
2 16
3 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory) 17 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory)