[Bug go/53998] New: [PATCH] fixed format string issue in gcc/libgo/runtime/goc2c.c
ettl.martin at gmx dot de
gcc-bugzilla@gcc.gnu.org
Tue Jul 17 14:19:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53998
Bug #: 53998
Summary: [PATCH] fixed format string issue in
gcc/libgo/runtime/goc2c.c
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
AssignedTo: ian@airs.com
ReportedBy: ettl.martin@gmx.de
Created attachment 27815
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27815
proposed patch
Please review the attached patch. It fixes two format string issue in file:
gcc/libgo/runtime/goc2c.c
This patch replaces the format string in an printf expression from %d to %u:
printf("#line %d \"%s\"\n", lineno, file);
because the variable lineno is of type unsigned int, which requires %u.
Best regards
Ettl Martin
More information about the Gcc-bugs
mailing list