Commit aa2077e0 authored by Tatsuya Kinoshita's avatar Tatsuya Kinoshita

Prevent heap-use-after-free read in HTMLlineproc0()

Bug-Debian: https://github.com/tats/w3m/issues/81
parent 7a2675b4
......@@ -6356,7 +6356,7 @@ HTMLlineproc0(char *line, struct html_feed_environ *h_env, int internal)
}
if (h_env->tagbuf->length == 0)
continue;
str = h_env->tagbuf->ptr;
str = Strdup(h_env->tagbuf)->ptr;
if (*str == '<') {
if (str[1] && REALLY_THE_BEGINNING_OF_A_TAG(str))
is_tag = TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment