Skip to content

IndexoutofBounds Exception when instrumenting some class files. #1

@vihari

Description

@vihari

unifi.drivers.Analyze INFO: Instrumenting method edu.stanford.muse.email.EmailFetcherThread.run()V
:::: aload_244 ::: 239 //This is the instruction and byte code offset respectively
?? idx = 7 no.of words : 1 local vars length: 4
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 6
at unifi.MethodUnits.get_local_var_unit(MethodUnits.java:459)
at unifi.drivers.Instrumenter.instrumentMethod(Instrumenter.java:359)
at unifi.drivers.Instrumenter.instrumentClass(Instrumenter.java:161)
at unifi.drivers.Instrumenter.instrumentJar(Instrumenter.java:87)
at unifi.drivers.Instrumenter.main(Instrumenter.java:473)
where one expects an idx of 2 in the above case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions