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 | |
| 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')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/coding.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b87555344f9..ad34152d1a3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2014-06-30 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * coding.c (MIN_CHARBUF_SIZE): Enlarge to 32. (Bug#17881) | ||
| 4 | |||
| 1 | 2014-06-30 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2014-06-30 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * nsmenu.m (update_frame_tool_bar): Set wait_for_tool_bar to NO | 7 | * nsmenu.m (update_frame_tool_bar): Set wait_for_tool_bar to NO |
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 { \ |