This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/15543] "jv-scan --complexity" segfaults
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2004 16:04:51 -0000
- Subject: [Bug java/15543] "jv-scan --complexity" segfaults
- References: <20040519160033.15543.vadimn@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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