Re: [evolution-patches] patch review for crash bug
- From: Jeffrey Stedfast <fejj ximian com>
- To: calvin liu sun com
- Cc: evolution-patches lists ximian com
- Subject: Re: [evolution-patches] patch review for crash bug
- Date: Mon, 01 Dec 2003 12:05:17 -0500
the proper fix would be to change:
if (*s == '%' && s[1] && s[2]) {
to
if (*s == '%') {
if (isxdigit (s[1]) && isxdigit (s[2])) {
*d++ = (XDIGIT (s[1]) << 4) + XDIGIT (s[2]);
s += 2;
} else {
*d++ = *s;
if (s[1] == '%')
*d++ = *s++;
}
} else
*d++ = *s;
Jeff
On Mon, 2003-12-01 at 06:31, Calvin Liu wrote:
> Hi, there,
>
> Here's a small patch to fix a crash bug.
> If you create vfolder like "xxx%%$$" it'll crash on solaris or
> mis-displayed.
> Suppose we shouldn't decode for all "%xx" case, the "x" here should be
> {digital|a~z|A~z}.
>
> Thanks.
> Calvin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]