aboutsummaryrefslogtreecommitdiffstats
path: root/libwc/ucs.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-11-18 13:08:33 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-11-18 13:30:19 +0000
commit716bc126638393c733399d11d3228edb82877faa (patch)
tree2c423546357e61279fbc6d7fbdd155c432685ba7 /libwc/ucs.c
parentUpdate ChangeLog (diff)
downloadw3m-716bc126638393c733399d11d3228edb82877faa.tar.gz
w3m-716bc126638393c733399d11d3228edb82877faa.zip
Prevent global-buffer-overflow in wc_any_to_ucs()
Bug-Debian: https://github.com/tats/w3m/issues/43
Diffstat (limited to '')
-rw-r--r--libwc/ucs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libwc/ucs.c b/libwc/ucs.c
index 727e574..18c3a67 100644
--- a/libwc/ucs.c
+++ b/libwc/ucs.c
@@ -178,6 +178,7 @@ wc_any_to_ucs(wc_wchar_t cc)
return WC_C_UCS2_EURO;
}
map = pcs_ucs_map[f - WC_F_PCS_BASE];
+ map_size = pcs_ucs_map_size[f - WC_F_PCS_BASE];
cc.code &= 0x7f;
break;
case WC_CCS_A_PCSW: