Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 409 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 409 Bytes

Clang-unchecked-pointer-plugin

A clang plugin to check if a C code uses unchecked pointer after allocating memory using malloc().

Requirements

Clang-11
Cmake

Instructions

To build

cmake build .
cmake --build .

To compile and run plugin

cmake --build && clang -fplugin=./CheckMalloc.so filename.c

Credits

Original repo: https://github.com/mahesh-hegde/clang_diag_plugin