Tag: c2d5b5e525a354987b9c3de3661133f982bf9ba0

MIPS: SNI: Correct NULL test

Author: Julia Lawall <julia@diku.dk> Test the value that was just allocated rather than the previously tested one. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @r@ expression *x; expression e; identifier l; @@ if (x == NULL || …) { … when forall return …; } … …

Continue reading