Skip to content

Ordoviz/gcc_scanf_checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scanf checker GCC plugin

This plugin reports unsafe calls to scanf. For example, scanf("%s", buf) is just as unsafe as gets(buf) yet no compiler warns about it as of 2024.

Building

meson setup _build
cd _build
meson compile

Then try out the plugin using

gcc -fplugin=./scanf_checker.so ../test/vulnerable.c

About

simple GCC plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published