229k views
22 votes
If a program has no syntax errors, can we assume that it is secure? Why or why not?

User Peterflynn
by
6.6k points

1 Answer

7 votes

Answer:

We cannot say it is secure until it has gone through security testing.

Step-by-step explanation:

Syntax errors are caused by errors that occur in the source code. Some of these errors are caused by spellings and punctuation. If the code does not follow the syntax of the programming language that it is being written, it would likely display a syntax error.

A program is secure only when it has gone through security testing and found to be protected from vulnerabilities and attacks.

User Flinsch
by
6.4k points