public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/53997] New: [PATCH] fixed format string issue in gcc/libgcc/config/libbid/bid128_string.c
@ 2012-07-17 13:32 ettl.martin at gmx dot de
  0 siblings, 0 replies; only message in thread
From: ettl.martin at gmx dot de @ 2012-07-17 13:32 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53997

             Bug #: 53997
           Summary: [PATCH] fixed format string issue in
                    gcc/libgcc/config/libbid/bid128_string.c
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ettl.martin@gmx.de


Created attachment 27814
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27814
proposed patch

Please review the attached patch. It fixes a format string issue in file:
gcc/libgcc/config/libbid/bid128_string.c


This patch replaces the format string in an sprintf expression from %u to %d:

      len += sprintf (str + len, "%u", exp);

because the variable exp is of type int, which requires %d.

Best regards

Ettl Martin


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-17 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-17 13:32 [Bug other/53997] New: [PATCH] fixed format string issue in gcc/libgcc/config/libbid/bid128_string.c ettl.martin at gmx dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).