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

Reply via email to