[Soot-list] What is the meaning of ActiveBody

Arzt, Steven steven.arzt at sit.fraunhofer.de
Fri Jan 19 05:33:34 EST 2018


Hi Sep,

A body is a body. “ActiveBody” only means that there is a body which has been loaded and that is associated with that method. For a simplified understanding, just speak of bodies. If getActiveBody() doesn’t find a body, that may have multiple reasons:


-          The method is a phantom, is abstract, or part of an interface

-          The method should have a body, but it has not been loaded yet. Try retrieveActiveBody() instead

-          The method was created in your code, and no body has been associated with it yet

Best regards,
  Steven

From: 周书林 [mailto:zhoushulin1992 at gmail.com]
Sent: Friday, January 19, 2018 11:21 AM
To: Arzt, Steven <steven.arzt at sit.fraunhofer.de>; soot-list at cs.mcgill.ca
Subject: Re: [Soot-list] What is the meaning of ActiveBody

Hi Steven,

Thank you for your explanation. But I am still confused with the difference between the concept of body and ActiveBody. How could I always get the body of a SootMethod? Because when I use the SootMethod API "getActiveBody()", there are some SootMethods that have no ActiveBody.

Best regards,
Sep

2018-01-19 18:03 GMT+08:00 Arzt, Steven <steven.arzt at sit.fraunhofer.de<mailto:steven.arzt at sit.fraunhofer.de>>:
Hi Sep,

The body of a method contains the statements inside that method as well as the local variable definitions and the exception handlers.

Best regards,
  Steven

From: Soot-list [mailto:soot-list-bounces at cs.mcgill.ca<mailto:soot-list-bounces at cs.mcgill.ca>] On Behalf Of ???
Sent: Friday, January 19, 2018 3:46 AM
To: soot-list at cs.mcgill.ca<mailto:soot-list at cs.mcgill.ca>
Subject: [Soot-list] What is the meaning of ActiveBody

I am novice in Java analysis and Soot. I am not familiar with the concept of ActiveBody in SootMethod. (The relevant APIs are hasActiveBody() and getActiveBody() ). Could somebody explain the meaning of ActiveBody? When a SootMethod has ActiveBody? If not, how to get access to the Body of this kind of SootMethod?

Thank you very much!

Sincerely.

Sep.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.CS.McGill.CA/pipermail/soot-list/attachments/20180119/91674f41/attachment-0001.html>


More information about the Soot-list mailing list