re PR java/30641 (gcj corrupted double-linked list (glibc detected))
authorAndrew Haley <aph@redhat.com>
Thu, 1 Feb 2007 14:34:11 +0000 (14:34 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Thu, 1 Feb 2007 14:34:11 +0000 (14:34 +0000)
2007-02-01  Andrew Haley  <aph@redhat.com>

        PR java/30641
        * jcf-parse.c (jcf_parse): Clear the field_offsets bitmap.

From-SVN: r121462

gcc/java/ChangeLog
gcc/java/jcf-parse.c

index bd11ee369532b83427f5a260aa5c4732069c7912..e5fc36a88b81afe803efe84c56d148e54f826bb0 100644 (file)
@@ -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.
index 0e2ba8c167bb72dce4dd3ec251241a35ca876b10..59b9e89c3af29b5c008c6a89f784400174c20186 100644 (file)
@@ -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);