Prevent overflow beyond the end of string in caller of get_mclen()
Bug-Debian: https://github.com/tats/w3m/issues/59 Bug-Debian: https://github.com/tats/w3m/issues/73 Bug-Debian: https://github.com/tats/w3m/issues/74 Bug-Debian: https://github.com/tats/w3m/issues/76 Bug-Debian: https://github.com/tats/w3m/issues/79 Bug-Debian: https://github.com/tats/w3m/issues/80 Bug-Debian: https://github.com/tats/w3m/issues/83 Bug-Debian: https://github.com/tats/w3m/issues/84
This commit is contained in:
@@ -59,8 +59,7 @@ extern void wtf_init(wc_ces ces1, wc_ces ces2);
|
||||
#define wtf_width(p) (WcOption.use_wide ? (int)WTF_WIDTH_MAP[(wc_uchar)*(p)] \
|
||||
: ((int)WTF_WIDTH_MAP[(wc_uchar)*(p)] ? 1 : 0))
|
||||
extern int wtf_strwidth(wc_uchar *p);
|
||||
/* extern size_t wtf_len1(wc_uchar *p); */
|
||||
#define wtf_len1(p) ((int)WTF_LEN_MAP[(wc_uchar)*(p)])
|
||||
extern size_t wtf_len1(wc_uchar *p);
|
||||
extern size_t wtf_len(wc_uchar *p);
|
||||
/* extern int wtf_type(wc_uchar *p); */
|
||||
#define wtf_type(p) WTF_TYPE_MAP[(wc_uchar)*(p)]
|
||||
|
Reference in New Issue
Block a user