* coding.c: Integer and buffer overflow fixes.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Sep 2011 15:58:20 +0000 (08:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 27 Sep 2011 15:58:20 +0000 (08:58 -0700)
commit2c6a9faaaebb2fca42c4f020865c7c077864cad8
treefeee8819c9f6c93244985b5bb2ea2b91424c333e
parentc801946a9290fe742d87053615495e68d04ec6be
* 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.
src/ChangeLog
src/coding.c