[Bug java/40479] New: libjava/gnu/gcj/util/natGCInfo.cc: bad call to sprintf

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jun 17 17:52:00 GMT 2009


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



More information about the Java-prs mailing list