From 7bb2a4671503c41d63989dcef9ef54dea0c73b43 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Thu, 7 Apr 2016 06:42:55 +0900 Subject: Fix segfault on bogus text Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820162 --- libwc/map/sjis_ext_ucs.map | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libwc/map/sjis_ext_ucs.map') diff --git a/libwc/map/sjis_ext_ucs.map b/libwc/map/sjis_ext_ucs.map index a82995c..cc748ba 100644 --- a/libwc/map/sjis_ext_ucs.map +++ b/libwc/map/sjis_ext_ucs.map @@ -1,6 +1,8 @@ /* Shift_JIS/CP932 (Japanese) */ -static wc_uint16 sjis_ext_ucs_map[ 0x5E * 10 ] = { +#define N_sjis_ext_ucs_map (0x5E * 10) + +static wc_uint16 sjis_ext_ucs_map[ N_sjis_ext_ucs_map ] = { 0x2460, /* 0x8740 */ 0x2461, /* 0x8741 */ 0x2462, /* 0x8742 */ -- cgit v1.2.3