Missing null check in invokevirtual_resolved?

Andrew Haley aph-gcc@littlepinkcloud.COM
Sun Sep 9 13:16:00 GMT 2007


invokevirtual_resolved seems to be missing a null check.  Is that right?

Andrew.


2007-09-09  Andrew Haley  <aph@redhat.com>

        * interpret-run.cc (invokevirtual_resolved): Nullcheck object on
        TOS.

2Index: interpret-run.cc
===================================================================
--- interpret-run.cc    (revision 128099)
+++ interpret-run.cc    (working copy)
@@ -563,6 +563,7 @@
          }
        else
          {
+           NULLCHECK (sp[0].o);
            jobject rcv = sp[0].o;
            _Jv_VTable *table = *(_Jv_VTable**) rcv;
            fun = (void (*)()) table->get_method (rmeth->method->index);



More information about the Java-patches mailing list