mate.poi.analysis.TruncatedInteger module

class mate.poi.analysis.TruncatedInteger.TruncatedInteger

Bases: mate.poi.poi_types.Analysis

run(session: Session, graph: CPG, _inputs: Dict[str, Any]) Iterator[POIGraphsPair]
Parameters
  • session (Session) –

  • graph (CPG) –

  • _inputs (Dict[str, Any]) –

Return type

Iterator[POIGraphsPair]

class mate.poi.analysis.TruncatedInteger.TruncatedIntegerPOI(*, insight: str, source: str = None, sink: str = None, salient_functions: List[mate_common.models.analyses.SalientFunction] = [], user_input: str, malloc: str, trunc_op: str)

Bases: mate_common.models.analyses.POI

Parameters
Return type

None

malloc: str
trunc_op: str
user_input: str
mate.poi.analysis.TruncatedInteger.compute_truncated_integers(session: Session, cpg: db.Graph) Iterator[Tuple[InputSignature, Node, Instruction]]
Parameters
Return type

Iterator[Tuple[InputSignature, Node, Instruction]]