aboutsummaryrefslogtreecommitdiffstats
path: root/libwc/map/jisx0208x0212x0213_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-11-19 05:10:16 +0000
commitaef7b47fbae8c4c79caf903903e67f483c23ded5 (patch)
tree6db75e19be637c37a5469215ece803766226318a /libwc/map/jisx0208x0212x0213_ucs.map
parentMerge branch 'bug/changelog' (diff)
downloadw3m-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 'libwc/map/jisx0208x0212x0213_ucs.map')
-rw-r--r--libwc/map/jisx0208x0212x0213_ucs.map8
1 files changed, 6 insertions, 2 deletions
diff --git a/libwc/map/jisx0208x0212x0213_ucs.map b/libwc/map/jisx0208x0212x0213_ucs.map
index 1a1d706..28c2a6c 100644
--- a/libwc/map/jisx0208x0212x0213_ucs.map
+++ b/libwc/map/jisx0208x0212x0213_ucs.map
@@ -1,6 +1,8 @@
/* JIS X 0208, JIS X 0212, JIS X 0213 (Japanese) */
-static wc_uint16 jisx0208x02131_ucs_map[ 0x5E * 0x5E ] = {
+#define N_jisx0208x02131_ucs_map (0x5E * 0x5E)
+
+static wc_uint16 jisx0208x02131_ucs_map[ N_jisx0208x02131_ucs_map ] = {
0x3000, /* JIS X 0208 0x2121 */
0x3001, /* JIS X 0208 0x2122 */
0x3002, /* JIS X 0208 0x2123 */
@@ -8839,7 +8841,9 @@ static wc_uint16 jisx0208x02131_ucs_map[ 0x5E * 0x5E ] = {
0, /* JIS X 0213-1 0x7E7E */
};
-static wc_uint16 jisx0212x02132_ucs_map[ 0x5E * 0x5E ] = {
+#define N_jisx0212x02132_ucs_map (0x5E * 0x5E)
+
+static wc_uint16 jisx0212x02132_ucs_map[ N_jisx0212x02132_ucs_map ] = {
0, /* JIS X 0213-2 0x2121 */
0x4E02, /* JIS X 0213-2 0x2122 */
0x4E0F, /* JIS X 0213-2 0x2123 */