diff options
| author | Paul Eggert | 2011-09-27 08:58:20 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-09-27 08:58:20 -0700 |
| commit | 2c6a9faaaebb2fca42c4f020865c7c077864cad8 (patch) | |
| tree | feee8819c9f6c93244985b5bb2ea2b91424c333e /src/ChangeLog | |
| parent | c801946a9290fe742d87053615495e68d04ec6be (diff) | |
| download | emacs-2c6a9faaaebb2fca42c4f020865c7c077864cad8.tar.gz emacs-2c6a9faaaebb2fca42c4f020865c7c077864cad8.zip | |
* coding.c: Integer and buffer overflow fixes.
(Funencodable_char_position, Fcheck_coding_systems_region)
(get_translation, handle_composition_annotation, consume_chars):
Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts.
(consume_chars): Rewrite to avoid calculating an address outside buffer.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 696123c6c1d..a273fd6ece0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -167,8 +167,10 @@ | |||
| 167 | Don't assume fixnums fit in int. | 167 | Don't assume fixnums fit in int. |
| 168 | (decode_coding_gap, decode_coding_object, encode_coding_object) | 168 | (decode_coding_gap, decode_coding_object, encode_coding_object) |
| 169 | (Fread_coding_system, Fdetect_coding_region) | 169 | (Fread_coding_system, Fdetect_coding_region) |
| 170 | (Funencodable_char_position, Fcheck_coding_systems_region): | 170 | (Funencodable_char_position, Fcheck_coding_systems_region) |
| 171 | (get_translation, handle_composition_annotation, consume_chars): | ||
| 171 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | 172 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. |
| 173 | (consume_chars): Rewrite to avoid calculating an address outside buffer. | ||
| 172 | (Ffind_operation_coding_system): NATNUMP can eval its arg twice. | 174 | (Ffind_operation_coding_system): NATNUMP can eval its arg twice. |
| 173 | (Fdefine_coding_system_internal): Check for charset-id overflow. | 175 | (Fdefine_coding_system_internal): Check for charset-id overflow. |
| 174 | (ENCODE_ISO_CHARACTER): Use unsigned, not int, to store the unsigned | 176 | (ENCODE_ISO_CHARACTER): Use unsigned, not int, to store the unsigned |