bug-gnu-libiconv
[Top][All Lists]
Advanced

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

Re: [bug-gnu-libiconv] Undefined Behavior sanitizer findings


From: Bruno Haible
Subject: Re: [bug-gnu-libiconv] Undefined Behavior sanitizer findings
Date: Thu, 07 Mar 2019 20:32:58 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-141-generic; KDE/5.18.0; x86_64; ; )

Hi,

Jeffrey Walton wrote:
> I built the latest iConv release tarball with -fsanitize=undefined and
> then ran the self tests with 'make check'. It produced a few findings:
> 
> ...
> ./check-stateless . CP874
> ./check-stateless . VISCII
> viscii.h:127:56: runtime error: left shift of 1 by 31 places cannot be
> represented in type 'int'
> ./check-stateless . TCVN
> tcvn.h:220:56: runtime error: left shift of 1 by 31 places cannot be
> represented in type 'int'
> ./check-stateful . TCVN
> ...

Thanks for the report. Should be fixed through this commit:

https://git.savannah.gnu.org/gitweb/?p=libiconv.git;a=commitdiff;h=bb4f73bbf0dd946e0730554140908a4522db0ac9

Bruno




reply via email to

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