A Treasure Map for Static Analysis in C Language

A Treasure Map for Static Analysis in C Language

At the end of the article on pointer handling (click here to view), we mentioned the functionality of generating side-effects for pointers: #include <stdio.h> int test(int a,int b,int* c){ *c = a + b; return 0; } int main(){ int a=1,b=2,c; test(a,b,&c); printf("%d\n",c); return 0; } When analyzing data flow using printf(* #-> as $a), … Read more

Understanding Macro Expansion Rules in C Language

Understanding Macro Expansion Rules in C Language

👆 Click the blue text "Linux Armory" at the top, and select "Add to Favorites" in the upper right corner Don’t miss out on great articles, see valuable content first 👆 FollowLinux Armory, to receive hardcore Linux learning materials and code unset1. Macro Expansion Rulesunsetunset In the C language preprocessor, if a macro parameter itself … Read more