diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-11-18 13:08:33 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-11-18 13:30:19 +0000 |
commit | 716bc126638393c733399d11d3228edb82877faa (patch) | |
tree | 2c423546357e61279fbc6d7fbdd155c432685ba7 /libwc/ucs.c | |
parent | Update ChangeLog (diff) | |
download | w3m-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 'libwc/ucs.c')
-rw-r--r-- | libwc/ucs.c | 1 |
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: |