Click here to Skip to main content
15,900,456 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Is static code analysis comparable to anti-malware software, as both only find already known vulnerabilities or malware and the rest is supposed to be found by some voodoo heuristics?

What I have tried:

I have only thought about it so far.
Posted
Updated 16-Jan-22 6:45am

They do totally different things: anti-malware looks for signatures (sometimes using pattern analysis rather than fixed strings) of malicious activity.

Static code analysis is to do with checking that source code meets defined rules and guidelines (such as "all DB access must use parameterised queries" or "all methods must have a single point of exit").

They really aren't comparable.
 
Share this answer
 
There are analyzers for code security too, see: code-security-analyzers[^]
But the term "Static Analyzer" usually refers to code analysis tools for measuring code quality like these: best-open-source-c-static-analysis-tools[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900