Faults in Linux: Using incorrect sizeof expressions

As part of my project, while reading the reports, I came to know about bugs where incorrect sizeof expressions are used, typically leading to allocation of data of the wrong size.  There were many in the versions 2.4.x and 2.6.x. I was also required to list FPs (false positives) by Coccinelle. This post will be about, what I found for the mentioned case.

You can view the complete report as a PDF here and as a HTML file here.

Continue reading →

#coccinelle, #faults, #foss-2, #incorrect-usage, #linux-kernel, #opw, #sizeof, #sizeof-expressions