⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 malloc.prop

📁 C程序漏洞检查!
💻 PROP
字号:
voiduno_check(void){	if (select("malloc", FCALL, NONE))		/* unmarked symbols of type function call */	{	if (select("", DEF, NONE))		/* unmarked symbols DEFined in those stmnts */		{	if (match(1, DEF, NONE))	/* are there matching symbols with mark 1? */				error("malloc follows malloc");			else				mark(1);		/* mark 1 */		} else			error("result of malloc unused");	} else	if (select("free", FCALL, NONE))	{	if (select("", USE, NONE))		{	if (match(1, DEF, NONE))				unmark();		/* remove mark */			else				error("free without malloc");		} else			error("no argument to free");	}	if (path_ends())	{	if (marked(1, ANY, NONE))		{	if (known_zero())				no_error();			else				error("malloc without free");	}	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -