Point.get_tainted_path_affecting_point()

Returns the first encountered path containing tainted data that influence the point, if it exists. Otherwise, returns an empty tuple.

Returns a path containing tainted data that affect the point.

get_tainted_path_affecting_point() β†’ APITuple[Point]

Note

This path can include points belonging to other functions.

Query Example

from glider import *


def query():

  instructions = Instructions().exec(1,1)

  affected_points = instructions[0].get_tainted_path_affecting_point()
  print(affected_points)
  for point in affected_points:
    print(point.source_code())
  return instructions

Output Example

Last updated