aboutsummaryrefslogtreecommitdiffstats
path: root/libwc/map/gbk_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/gbk_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 '')
-rw-r--r--libwc/map/gbk_ucs.map4
1 files changed, 3 insertions, 1 deletions
diff --git a/libwc/map/gbk_ucs.map b/libwc/map/gbk_ucs.map
index 5a0d5ba..d092fd7 100644
--- a/libwc/map/gbk_ucs.map
+++ b/libwc/map/gbk_ucs.map
@@ -6,7 +6,9 @@ static wc_map ucs_gbk_80_map[ N_ucs_gbk_80_map ] = {
{ 0x20AC, 0x0080 },
};
-static wc_uint16 gbk_ucs_map[ 0x7E * 0xBE - 0x5E * 0x5E + 0x0A + 0x16 + 0x06 ] = {
+#define N_gbk_ucs_map (0x7E * 0xBE - 0x5E * 0x5E + 0x0A + 0x16 + 0x06)
+
+static wc_uint16 gbk_ucs_map[ N_gbk_ucs_map ] = {
0x4E02, /* 0x8140 */
0x4E04, /* 0x8141 */
0x4E05, /* 0x8142 */