Interface IMemoryManager<D,N>

All Known Implementing Classes:
FlowDroidMemoryManager

public interface IMemoryManager<D,N>
Common interface of all memory managers that can be used with FlowDroid's solvers. Note that not every solver is required to support memory managers.
Author:
Steven Arzt
  • Method Summary

    Modifier and Type
    Method
    Description
    Tells the memory manager to optimize the given generated object.
    Tells the memory manager to handle the given object.
    boolean
    isEssentialJoinPoint(D abs, N relatedCallSite)
    Checks whether the given abstraction at the given call site is essential and must be kept.
  • Method Details

    • handleMemoryObject

      D handleMemoryObject(D obj)
      Tells the memory manager to handle the given object. Implementations are free to replace the incoming object with a different reference.
      Parameters:
      obj - The object to handle
      Returns:
      The new reference that shall be used instead of the old one
    • handleGeneratedMemoryObject

      D handleGeneratedMemoryObject(D input, D output)
      Tells the memory manager to optimize the given generated object. The output was computed from the input object using a flow function.
      Parameters:
      input - The original input to the flow function
      output - The output of the flow function
      Returns:
      The new refrence to use instead of the original output
    • isEssentialJoinPoint

      boolean isEssentialJoinPoint(D abs, N relatedCallSite)
      Checks whether the given abstraction at the given call site is essential and must be kept. Non-essential taint abstractions will not be registered as neighbors for join points if the "single join point abstraction" option is enabled
      Parameters:
      abs - The abstraction
      relatedCallSite - The call site over which the abstraction is being propagated
      Returns:
      True if the abstraction is essential and must be kept, otherwise false