diff options
author | Eli Zaretskii <eliz@gnu.org> | 2014-06-30 18:39:29 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2014-06-30 18:39:29 +0300 |
commit | c6ecf7f23d99a7c51a9372fefb261ddca89a1db2 (patch) | |
tree | d8ad3e7217776671bac26d84943705da2d1e01ed /src/coding.c | |
parent | 9c660a187ce2dd68a78c915c0006050c0cdbbffc (diff) | |
download | emacs-c6ecf7f23d99a7c51a9372fefb261ddca89a1db2.tar.gz |
Fix bug #17881 with infloop in decoding emacs-mule encoded text.
src/coding.c (MIN_CHARBUF_SIZE): Enlarge to 32.
Diffstat (limited to 'src/coding.c')
-rw-r--r-- | src/coding.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 5dbaf96840a..85a50dad91f 100644 --- a/src/coding.c +++ b/src/coding.c @@ -7266,7 +7266,8 @@ produce_charset (struct coding_system *coding, int *charbuf, ptrdiff_t pos) } #define MAX_CHARBUF_SIZE 0x4000 -#define MIN_CHARBUF_SIZE 0x10 +/* emacs-mule decoding requires more than 16 bytes. */ +#define MIN_CHARBUF_SIZE 0x20 #define ALLOC_CONVERSION_WORK_AREA(coding, size) \ do { \ |