Skip to content

Types of bugs found by ControlFlag #18

Answered by nhasabni
nhasabni asked this question in Q&A
Discussion options

You must be logged in to vote

Note that ControlFlag is not a typical bug detection system in that it is not designed to catch specific types of bugs (e.g., double free). In fact, ControlFlag does not even know what a bug looks like. All that it knows are typical programming patterns and it then flags any deviations with respect to those patterns as anomalies. It is more often the case that these anomalies lead to bugs.

That being said, we have seen that ControlFlag can find bugs directly also. For instance, ControlFlag found a possible NULL pointer dereference in production-quality code because the code was using abnormal expression of the form

if (ptr == NULL && ptr->field == NULL) {
  // error
}

where instead of &&,…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by nhasabni
Comment options

You must be logged in to vote
1 reply
@nhasabni
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants