Skip to content

ptmalloc2_tracking ¤

Functions:

Attributes:

parser module-attribute ¤

parser = ArgumentParser(
    formatter_class=RawTextHelpFormatter,
    description="Manages the heap tracker.\n\nThe heap tracker is a module that tracks usage of the GLibc heap and looks for\nuser errors such as double frees and use after frees.\n\nCurrently, the following errors can be detected:\n    - Use After Free\n",
)

subparsers module-attribute ¤

subparsers = add_subparsers(
    required=True,
    description="Used to enable, disable and query information about the tracker",
)

enable module-attribute ¤

enable = add_parser('enable', help='Enable heap tracking')

disable module-attribute ¤

disable = add_parser('disable', help='Disable heap tracking')

toggle_break module-attribute ¤

toggle_break = add_parser(
    "toggle-break",
    help="Toggles whether possible UAF conditions will pause execution",
)

track_heap ¤

track_heap(mode=None, use_hardware_breakpoints=False)