[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnu-libiconv] bug: infinite loop in loop_wchar.h:wchar_to_loop_
From: |
Bruno Haible |
Subject: |
Re: [bug-gnu-libiconv] bug: infinite loop in loop_wchar.h:wchar_to_loop_convert |
Date: |
Wed, 8 Jul 2009 00:28:37 +0200 |
User-agent: |
KMail/1.9.9 |
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>
Bruno