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
#!/usr/bin/env python3 | |
""" | |
Generate a Clang AST (in JSON format) from a compilation database. Adapted from | |
run-clang-format.py. | |
I use [bear](https://github.com/rizsotto/Bear) to generate the compilation | |
database. | |
Author: Adrian Herrera |
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
#!/usr/bin/env python3 | |
""" | |
Calculate the cyclomatic complexity of a graph in a DOT file. | |
Author: Adrian Herrera | |
""" | |
from argparse import ArgumentParser |
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
#!/usr/bin/env python3 | |
""" | |
Create a libFuzzer-style merge from afl-showmap. | |
Author: Adrian Herrera | |
""" | |
from argparse import ArgumentParser |
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 <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <semaphore.h> | |
#if !defined(BUFFER_SIZE) | |
#define BUFFER_SIZE 10 | |
#endif |
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
#!/usr/bin/env python | |
# | |
# Serializes a stack trace from a crashed program into JSON. | |
# | |
# To run: | |
# BACKTRACE_OUT=out.json gdb --command gdb_stack_trace.py PROG [GDB_ARGS]... | |
# | |
import json | |
import os |