Lift the MOST_POSITIVE_FIXNUM/4 limitation on visited files (bug#8528).
authorEli Zaretskii <eliz@gnu.org>
Fri, 29 Apr 2011 19:47:29 +0000 (22:47 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 29 Apr 2011 19:47:29 +0000 (22:47 +0300)
commit15cbd324fd48e47abd57b8d92c3406c866169d21
treeaa05b809dcec4391837ac2f4a41d1b8fdc93cbc2
parentae940ccad19a554e1134b7ae443716e46c72366d
Lift the MOST_POSITIVE_FIXNUM/4 limitation on visited files (bug#8528).

 src/fileio.c (Finsert_file_contents): Don't limit file size to 1/4
 of MOST_POSITIVE_FIXNUM.
 src/coding.c (coding_alloc_by_realloc): Error out if destination
 will grow beyond MOST_POSITIVE_FIXNUM.
 (decode_coding_emacs_mule): Abort if there isn't enough place in
 charbuf for the composition carryover bytes.  Reserve an extra
 space for up to 2 characters produced in a loop.
 (decode_coding_iso_2022): Abort if there isn't enough place in
 charbuf for the composition carryover bytes.
src/ChangeLog
src/coding.c
src/fileio.c