Vincent Beron wrote:
I attach the smatch script to generate the results I have. It's still not perfect (the listview.c references are wrong, for example), but as it's tied to gcc it can detect some calls which otherwise would not be caught. For example, the calls to GetWindowLongA in header.c are in a macro.
Not all of them are bugs: caution is needed when checking, although reducing the number of false positive would likely be welcome (either by modifying the script or patches).
I see many "xxxAW calls xxxA function" mainly in the shell related DLLs. This is of course not something you can really get rid of, so the script should be able to exclude those cases.
Rolf Kalbermatter
On Wed, 25 Aug 2004, Rolf Kalbermatter wrote: [...]
I see many "xxxAW calls xxxA function" mainly in the shell related DLLs. This is of course not something you can really get rid of, so the script should be able to exclude those cases.
I couldn't test as I don't have smatch, but I think that simply adding this line in the right place should do the trick.
$func_in = "No function" if ($func_in =~ /AW$/);
See the attached script.