MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / recordUnknown

Method recordUnknown

src/function_context.py:496–506  ·  view source on GitHub ↗

Record a function call to an unknown function. Args: unknown (str): name of an unknown source function is_fptr (bool): True if this is an unknown fptr (False by default)

(self, unknown, is_fptr=False)

Source from the content-addressed store, hash-verified

494 self.collision_candidates = []
495
496 def recordUnknown(self, unknown, is_fptr=False):
497 """Record a function call to an unknown function.
498
499 Args:
500 unknown (str): name of an unknown source function
501 is_fptr (bool): True if this is an unknown fptr (False by default)
502 """
503 if not is_fptr:
504 self.unknown_funcs.add(unknown)
505 else:
506 self.unknown_fptrs.add(unknown)
507
508 def setHash(self, digest):
509 """Set the hash digest of our function.

Callers 2

deserializeMethod · 0.95
analyzeFunctionMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected