Skip to content

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

Notifications You must be signed in to change notification settings

Blindwhisky27/Clang-unchecked-pointer-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published