[Top][All Lists]

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

[PATCH] infinite loop converting to UCS2

From: Bastien Nocera
Subject: [PATCH] infinite loop converting to UCS2
Date: Tue, 26 Jul 2005 23:07:27 +0100


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.

Test case and patch attached.

Please commit.

PS: Please CC: me as per usual ;)
Bastien Nocera <address@hidden> 

Attachment: test-encode.c
Description: Text Data

Attachment: gnokii-to-ucs2-infinite-loop.patch
Description: Text Data

reply via email to

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