This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[JAVA] Avoid segfault invoking jc1 with no args


Roger Sayle writes:
 > 
 > The following patch prevents jc1 from dumping core when executed
 > with no command line arguments.  The problem is that java_parse_file
 > doesn't consider the eventuality that input_filename is NULL, which
 > currently results in an ICE in xstrdup.
 > 
 > Ok for mainline?

OK.

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]