Prevent global-buffer-overflow in wc_any_to_ucs()
Bug-Debian: https://github.com/tats/w3m/issues/43
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user