soot.jimple.toolkits.pointer.nativemethods
Class JavaNetInetAddressImplNative
java.lang.Object
|
+--soot.jimple.toolkits.pointer.nativemethods.NativeMethodClass
|
+--soot.jimple.toolkits.pointer.nativemethods.JavaNetInetAddressImplNative
- public class JavaNetInetAddressImplNative
- extends NativeMethodClass
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
JavaNetInetAddressImplNative
public JavaNetInetAddressImplNative(Singletons.Global g)
v
public static JavaNetInetAddressImplNative v()
simulateMethod
public void simulateMethod(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Implements the abstract method simulateMethod.
It distributes the request to the corresponding methods
by signatures.
- Overrides:
- simulateMethod in class NativeMethodClass
java_net_InetAddressImpl_getLocalHostName
public static void java_net_InetAddressImpl_getLocalHostName(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Returns a variable pointing to a string constant
I am not sure if repeated calls of methods in this class will
return the same object or not. A conservative approach would
say YES, for definitely points-to, but NO for may points-to.
We should avoid analyzing these unsafe native methods.
native java.lang.String getLocalHostName()
throws java.net.UnknownHostException;
java_net_InetAddressImpl_getHostByAddr
public static void java_net_InetAddressImpl_getHostByAddr(SootMethod method,
ReferenceVariable thisVar,
ReferenceVariable returnVar,
ReferenceVariable[] params)
- Create a string object
native java.lang.String getHostByAddr(int)
throws java.net.UnknownHostException;