diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-04-06 21:42:55 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-11-19 05:10:16 +0000 |
commit | aef7b47fbae8c4c79caf903903e67f483c23ded5 (patch) | |
tree | 6db75e19be637c37a5469215ece803766226318a /libwc/map/big5_ucs.map | |
parent | Merge branch 'bug/changelog' (diff) | |
download | w3m-aef7b47fbae8c4c79caf903903e67f483c23ded5.tar.gz w3m-aef7b47fbae8c4c79caf903903e67f483c23ded5.zip |
Fix segfault on bogus text
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820162
Origin: https://anonscm.debian.org/cgit/collab-maint/w3m.git/commit/?id=7bb2a4671503c41d63989dcef9ef54dea0c73b43
Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1324348
cf. https://lists.fedoraproject.org/pipermail/package-announce/2016-April/182697.html
Diffstat (limited to '')
-rw-r--r-- | libwc/map/big5_ucs.map | 4 |
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 */ |