[Bug java/15543] "jv-scan --complexity" segfaults
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 20 16:27:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-19 16:04 -------
Confirmed, looks like someone forgot to check for an NULL before passing to strlen.
Here is the backtrace on the mainline:
#1 0x0804bba4 in yyparse () at parse-scan.y:517
517 char *n = xmalloc (bracket_count + 1 + strlen ($$));
(gdb) bt
#0 0x42080bbb in strlen () from /lib/i686/libc.so.6
#1 0x0804bba4 in yyparse () at parse-scan.y:517
#2 0x0804bf91 in main (argc=3, argv=0xbffec3a4) at /home/gates/pinskia/src/gnu/gcc/src/gcc/
java/jv-scan.c:216
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-05-19 16:04:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15543
More information about the Gcc-bugs
mailing list