diff options
| author | Eli Zaretskii | 2014-06-30 18:39:29 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2014-06-30 18:39:29 +0300 |
| commit | c6ecf7f23d99a7c51a9372fefb261ddca89a1db2 (patch) | |
| tree | d8ad3e7217776671bac26d84943705da2d1e01ed /src/coding.c | |
| parent | 9c660a187ce2dd68a78c915c0006050c0cdbbffc (diff) | |
| download | emacs-c6ecf7f23d99a7c51a9372fefb261ddca89a1db2.tar.gz emacs-c6ecf7f23d99a7c51a9372fefb261ddca89a1db2.zip | |
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) | |||
| 7266 | } | 7266 | } |
| 7267 | 7267 | ||
| 7268 | #define MAX_CHARBUF_SIZE 0x4000 | 7268 | #define MAX_CHARBUF_SIZE 0x4000 |
| 7269 | #define MIN_CHARBUF_SIZE 0x10 | 7269 | /* emacs-mule decoding requires more than 16 bytes. */ |
| 7270 | #define MIN_CHARBUF_SIZE 0x20 | ||
| 7270 | 7271 | ||
| 7271 | #define ALLOC_CONVERSION_WORK_AREA(coding, size) \ | 7272 | #define ALLOC_CONVERSION_WORK_AREA(coding, size) \ |
| 7272 | do { \ | 7273 | do { \ |