aboutsummaryrefslogtreecommitdiffstats
path: root/libwc/map/big5_ucs.map
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-04-06 21:42:55 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-04-06 21:42:55 +0000
commit7bb2a4671503c41d63989dcef9ef54dea0c73b43 (patch)
treee43704e1f5ae0b762027fb3e6a817cc115ff7efb /libwc/map/big5_ucs.map
parentUpdate ChangeLog (diff)
downloadw3m-7bb2a4671503c41d63989dcef9ef54dea0c73b43.tar.gz
w3m-7bb2a4671503c41d63989dcef9ef54dea0c73b43.zip
Fix segfault on bogus text
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820162
Diffstat (limited to 'libwc/map/big5_ucs.map')
-rw-r--r--libwc/map/big5_ucs.map4
1 files changed, 3 insertions, 1 deletions
diff --git a/libwc/map/big5_ucs.map b/libwc/map/big5_ucs.map
index 0c6fd12..ac817a9 100644
--- a/libwc/map/big5_ucs.map
+++ b/libwc/map/big5_ucs.map
@@ -1,6 +1,8 @@
/* Big5 (Chinese Taiwan) */
-static wc_uint16 big5_ucs_map[ 0x59 * 0x9D ] = {
+#define N_big5_ucs_map (0x59 * 0x9D)
+
+static wc_uint16 big5_ucs_map[ N_big5_ucs_map ] = {
0x3000, /* 0xA140 */
0xFF0C, /* 0xA141 */
0x3001, /* 0xA142 */