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

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Jun 17 18:00:00 GMT 2009



------- Comment #1 from pinskia at gcc dot gnu dot org  2009-06-17 18:00 -------
      char temp[strlen(oomDumpName) + 20];
      sprintf(temp, "%s%03d", temp, GC_dump_count++);


I think it should rather be:

      sprintf(temp, "%s%03d", oomDumpName, GC_dump_count++);


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|java                        |libgcj
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-06-17 18:00:41
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40479



More information about the Java-prs mailing list