[PATCH 1/4] Fix format-overflow errors

Nick Clifton nickc@redhat.com
Mon Feb 27 12:47:00 GMT 2017


Hi Daniel,

> ../../binutils-gdb/binutils/prdbg.c: In function �pr_array_type�:
> ../../binutils-gdb/binutils/prdbg.c:500:16: error: �sprintf� may write a terminating nul past the end of the destination [-Werror=format-overflow=]
>   sprintf (buf, "%ld", (long) vma);
>                 ^~~~~
> ../../binutils-gdb/binutils/prdbg.c:500:2: note: �sprintf� output between 2 and 21 bytes into a destination of size 20
>   sprintf (buf, "%ld", (long) vma);

This has already been fixed by commit: 98a4fc78f9dab76b5ada3551a7bef36db8a3ed05

Cheers
  Nick



More information about the Binutils mailing list