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-19 12:26:31 +0000
commit390e33436b0706dc2a77683b87235ff811d23d26 (patch)
tree22e2fdeb6a9e0f36690e7f1e6653ab7ae3a2cb0e /libwc/ucs.c
parentPrevent global-buffer-overflow in parseURL() (diff)
downloadw3m-390e33436b0706dc2a77683b87235ff811d23d26.tar.gz
w3m-390e33436b0706dc2a77683b87235ff811d23d26.zip
Prevent global-buffer-overflow in wc_any_to_ucs()
Bug-Debian: https://github.com/tats/w3m/issues/43 Origin: https://anonscm.debian.org/cgit/collab-maint/w3m.git/commit/?id=716bc126638393c733399d11d3228edb82877faa Origin: https://anonscm.debian.org/cgit/collab-maint/w3m.git/commit/?id=88110c2658ad9badd292430c75ebb0444c3312eb
Diffstat (limited to 'libwc/ucs.c')
-rw-r--r--libwc/ucs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libwc/ucs.c b/libwc/ucs.c
index 061e1ce..05e5e85 100644
--- a/libwc/ucs.c
+++ b/libwc/ucs.c
@@ -177,6 +177,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: