[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] infinite loop converting to UCS2

From: Bastien Nocera
Subject: Re: [PATCH] infinite loop converting to UCS2
Date: Thu, 28 Jul 2005 10:08:09 +0100

On Thu, 2005-07-28 at 01:31 +0200, Pawel Kot wrote:
> Hi,
> 2005/7/27, Bastien Nocera <address@hidden>:
> > There's an infinite loop in char_ucs2_encode(), it doesn't exit when
> > reaching the null-character at the end of the string. It could also lead
> > to memory corruption, and eventually crashes.
> That's right. but why not make it case 0: in the switch?

Because "break" would break out of the switch statement, not the for
loop :)

Bastien Nocera <address@hidden> 
I'm surprised you gave How To Make An American Quilt a four-star rating.
I thought it was just sew-sew. -- reader Glenn Cossey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]