aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2007-02-01 14:34:11 +0000
committerAndrew Haley <aph@gcc.gnu.org>2007-02-01 14:34:11 +0000
commit2a97d6b20de6e95f3e0948d6fecec340d421a1ec (patch)
tree05c9f9231f1264f9b73b14a2fa44e62c1a73c0d4 /gcc/java
parentc3f0f556dbb69eaa968844a13a4b9d26b0314559 (diff)
downloadgcc-2a97d6b20de6e95f3e0948d6fecec340d421a1ec.zip
gcc-2a97d6b20de6e95f3e0948d6fecec340d421a1ec.tar.gz
gcc-2a97d6b20de6e95f3e0948d6fecec340d421a1ec.tar.bz2
re PR java/30641 (gcj corrupted double-linked list (glibc detected))
2007-02-01 Andrew Haley <aph@redhat.com> PR java/30641 * jcf-parse.c (jcf_parse): Clear the field_offsets bitmap. From-SVN: r121462
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-parse.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index bd11ee3..e5fc36a 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2007-02-01 Andrew Haley <aph@redhat.com>
+
+ PR java/30641
+ * jcf-parse.c (jcf_parse): Clear the field_offsets bitmap.
+
2007-01-31 Kazu Hirata <kazu@codesourcery.com>
* class.c, jcf-parse.c: Fix comment typos.
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index 0e2ba8c..59b9e89 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -1449,6 +1449,8 @@ jcf_parse (JCF* jcf)
{
int i, code;
+ bitmap_clear (field_offsets);
+
if (jcf_parse_preamble (jcf) != 0)
fatal_error ("not a valid Java .class file");
code = jcf_parse_constant_pool (jcf);