This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from binaryninja import * | |
| class Slicer(): | |
| def __init__(self, instruction): | |
| self.visited = set() | |
| self.instruction = instruction | |
| self.function = instruction.function | |
| def visit_backward(self, instruction): | |
| for var in instruction.vars_read: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| int main() | |
| { | |
| puts("Basic allocation example.\n"); | |
| char* a = malloc(0x10); | |
| strcpy(a, "AAAAAAAAAAAAAAA"); // A * 15 | |
| char* b = malloc(0x12); | |
| memcpy(b, "BBBBBBBBBBBBBBBBBBBBBBBB", 24); // B * 23 |
OlderNewer