Bug 53997 - [PATCH] fixed format string issue in gcc/libgcc/config/libbid/bid128_string.c
Summary: [PATCH] fixed format string issue in gcc/libgcc/config/libbid/bid128_string.c
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: libgcc (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-17 13:31 UTC by Martin Ettl
Modified: 2021-08-24 05:24 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
proposed patch (267 bytes, patch)
2012-07-17 13:31 UTC, Martin Ettl
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ettl 2012-07-17 13:31:57 UTC
Created attachment 27814 [details]
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