<<< Date Index >>>     <<< Thread Index >>>

Re: What happened to strict_mime?



On 2007-03-22 16:31:53 +0900, TAKAHASHI Tamotsu wrote:

This:

> +  s = strdup (AssumedCharset);
> +  /* If it begins with ":", make it empty */
> +  if (s != strtok (s, ":"))
> +    *s = '\0';
> +  return s;

Combined with this:

> +    char *assumed_charset = mutt_get_default_charset ();
> +    if ((charset || *assumed_charset) && Charset)
> +      cd = mutt_iconv_open (Charset, charset ? charset : assumed_charset, 
> M_ICONV_HOOK_FROM);
> +    FREE (&assumed_charset);
>    }

... leads to heap coruption.

Regards,
-- 
Thomas Roessler   <roessler@xxxxxxxxxxxxxxxxxx>