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

2016-09-30 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40479

Andrew Pinski  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |WONTFIX

--- Comment #2 from Andrew Pinski  ---
Closing as won't fix as libgcj (and the java front-end) has been removed from
the trunk.

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

2009-06-17 Thread pinskia at gcc dot gnu dot org


--- 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|-00-00 00:00:00 |2009-06-17 18:00:41
   date||


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