Closed K2 closed 4 years ago
long get_esp() { __asm__("movl %esp,%eax"); }
Hi @K2,
Analysing assembly language code is beyond the scope of this query, so I've created https://github.com/Semmle/ql/pull/2598 to add an exclusion for functions containing asm
to the query. This should resolve the two false positive results you've linked to.
Description of the false positive
asm is breaking various queries. Return value tracking should be pretty easy to add. :)
URL to the alert on the project page on LGTM.com
https://lgtm.com/projects/g/K2/ADMMutate/snapshot/70daec90a876c317b0d873b68f6abb3fdcf3bfd9/files/ADMmuteng.c?sort=name&dir=ASC&mode=heatmap#x5e9b386724327054:1