diff options
| author | Paul Eggert | 2014-04-27 18:29:44 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-04-27 18:29:44 -0700 |
| commit | 6ab1b16c54b63d1c4217b6fcea026400029fcc72 (patch) | |
| tree | e3fef3d5e3f4436b2bc59b1006afc98075da06f0 /src/ChangeLog | |
| parent | 196bfaecb0caffcdbb699694139a97148e90e227 (diff) | |
| download | emacs-6ab1b16c54b63d1c4217b6fcea026400029fcc72.tar.gz emacs-6ab1b16c54b63d1c4217b6fcea026400029fcc72.zip | |
Avoid undefined behavior in signed left shift.
This ports to GCC 4.9.0 with -fsanitize=undefined.
* alloc.c (bool_vector_fill, SETMARKBIT, UNSETMARKBIT):
* data.c (Fash):
* regex.c (extract_number):
* lisp.h (make_number, XINT):
Do not shift a 1 bit left into a sign bit.
* alloc.c (struct cons_block, struct float_block): Use unsigned,
not int, for gcmarkbits. All uses changed.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 9d4fd2d6d37..90223d6d103 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2014-04-28 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Avoid undefined behavior in signed left shift. | ||
| 4 | This ports to GCC 4.9.0 with -fsanitize=undefined. | ||
| 5 | * alloc.c (bool_vector_fill, SETMARKBIT, UNSETMARKBIT): | ||
| 6 | * data.c (Fash): | ||
| 7 | * regex.c (extract_number): | ||
| 8 | * lisp.h (make_number, XINT): | ||
| 9 | Do not shift a 1 bit left into a sign bit. | ||
| 10 | * alloc.c (struct cons_block, struct float_block): Use unsigned, | ||
| 11 | not int, for gcmarkbits. All uses changed. | ||
| 12 | |||
| 1 | 2014-04-25 Eli Zaretskii <eliz@gnu.org> | 13 | 2014-04-25 Eli Zaretskii <eliz@gnu.org> |
| 2 | 14 | ||
| 3 | * search.c (Fnewline_cache_check): Don't try to count newlines | 15 | * search.c (Fnewline_cache_check): Don't try to count newlines |