Harmful C Source File Check?

后端 未结 3 577
天涯浪人
天涯浪人 2020-12-18 05:12

Is there a way to programmatically check if a single C source file is potentially harmful?

I know that no check will y

3条回答
  •  一整个雨季
    2020-12-18 05:20

    You could do some obvious checks for "bad" function calls like network IO or assembly blocks. Beyond that, I can't think of anything you can do with just a C file.

    Given the nature of C you're just about going to have to compile to even get started. Macros and such make static analysis of C code pretty difficult.

提交回复
热议问题