This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/40479] New: libjava/gnu/gcj/util/natGCInfo.cc: bad call to sprintf
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 17 Jun 2009 17:52:19 -0000
- Subject: [Bug java/40479] New: libjava/gnu/gcj/util/natGCInfo.cc: bad call to sprintf
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I just had a look at the source file libjava/gnu/gcj/util/natGCInfo.cc
Around line 410 is the source code
sprintf(temp, "%s%03d", temp, GC_dump_count++);
It cannot be correct to read and write from the same buffer
at the same time. Suggest replace one use of temp with another
variable.
--
Summary: libjava/gnu/gcj/util/natGCInfo.cc: bad call to sprintf
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: x86_64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40479