|
From: | Tristan Gingold |
Subject: | Re: [bug-gnu-libiconv] bug: infinite loop in loop_wchar.h:wchar_to_loop_convert |
Date: | Wed, 8 Jul 2009 12:40:21 +0200 |
On Jul 8, 2009, at 12:28 AM, Bruno Haible wrote:
Hi, Tristan Gingold wrote:while working on gdb, I found an infinite loop in libiconv: wchar_to_loop_convert is called with *inbytesleft = 1 and unicode_loop_convert returns -1 + EINVAL. As a consequence *inbytesleft is never decreased and the function loops forever.Thank you for the report. I figured out a test case from your description, and committed a fix here:<http://git.savannah.gnu.org/gitweb/?p=libiconv.git;a=commitdiff;h=2cf3ee65d04ac4e41e29aa7526361ec3f20f5e29 >
Thanks!
[Prev in Thread] | Current Thread | [Next in Thread] |