Commit Graph

6 Commits (619ff18104c230cb7a134cc92844933422abbc8f)

Author SHA1 Message Date
Denis Balashov 344e89e3c6 qa/cocci: fix broken regex alternation in malloc-error-check
Coccinelle uses OCaml Str, not PCRE. The '|' and '()' characters are
literals in OCaml Str, so 'identifier func =~ "(SCMalloc|SCCalloc|...)"'
never matched anything — making the entire script a no-op since its
introduction.

Replace all five patterns with OCaml Str alternation syntax 'A\|B'.

Ticket: 8641
5 months ago
Victor Julien 353eb9086d cocci: fix python issues 4 years ago
Victor Julien 80a3bbef3d qa/cocci: support FAIL macros in malloc check 6 years ago
Eric Leblond a597237aed coccinelle: fix malloc test
We can have more than an identifier to be assigned the result of
a malloc function.
13 years ago
Eric Leblond 6e5caf6838 coccinelle: add new correct case to error treatment 14 years ago
Eric Leblond 28ca36acf7 coccinelle: add test on malloc error check.
This patch adds a coccinelle code check on SCMalloc, SCCalloc and
SCStrdup and other memory handling functions. It verifies that the
error checking is made.
14 years ago