Fix segfault on bogus text

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820162
This commit is contained in:
Tatsuya Kinoshita
2016-04-07 06:42:55 +09:00
parent 02ba3d6ed6
commit 7bb2a46715
12 changed files with 99 additions and 12 deletions

View File

@@ -1,6 +1,8 @@
/* UHC/CP949 (Korean) */
static wc_uint16 uhc_ucs_map[ 0x20 * 0xB2 + 0x27 * 0x54 + 2 ] = {
#define N_uhc_ucs_map (0x20 * 0xB2 + 0x27 * 0x54 + 2)
static wc_uint16 uhc_ucs_map[ N_uhc_ucs_map ] = {
0xAC02, /* 0x8141 */
0xAC03, /* 0x8142 */
0xAC05, /* 0x8143 */