[Buildroot] [PATCH] argp-standalone: restrict value range passed to isprint function

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri May 1 09:09:26 UTC 2015


Dear Max Filippov,

On Tue, 28 Apr 2015 11:50:36 +0300, Max Filippov wrote:
> According to C standards isprint argument shall be representable as an
> unsigned char or be equal to EOF, otherwise the behaviour is undefined.
> 
> Passing arbitrary ints leads to segfault in nm program from elfutils.
> 
> Restrict isprint argument range to values representable by unsigned char.
> 
> Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
> ---
>  package/argp-standalone/0002-isprint.patch | 35 ++++++++++++++++++++++++++++++
>  1 file changed, 35 insertions(+)
>  create mode 100644 package/argp-standalone/0002-isprint.patch

Applied, thanks. I've added a reference to the corresponding glibc
commit.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list