Tim Duesterhus
ef00c533e1
DEV: coccinelle: Add rule to use istnext()
where possible
...
This matches both `istadv(..., 1)` as well as raw `.ptr++` uses.
2021-11-05 07:48:38 +01:00
Tim Duesterhus
cc17a6e1d3
DEV: coccinelle: Add ha_free.cocci
...
Taken from 61cfdf4fd8
.
2021-11-05 07:48:38 +01:00
Tim Duesterhus
e6c04507d8
DEV: coccinelle: Add realloc_leak.cocci
...
This coccinelle patch finds locations where the return value of `realloc()` is
assigned to the pointer passed to `realloc()`. This calls will leak memory if
`realloc()` returns `NULL`.
2021-10-28 09:45:48 +02:00
Tim Duesterhus
bce9108a1f
DEV: coccinelle: Add strcmp.cocci
...
see e5ff14100a
2021-10-18 07:17:04 +02:00
Tim Duesterhus
ecf55968a1
DEV: coccinelle: Add xalloc_cast.cocci
...
This remove's C++ style casts from the return value of malloc/calloc.
see 403fd722ac
2021-09-17 17:22:05 +02:00
Tim Duesterhus
02fa646a37
DEV: coccinelle: Add bug_on.cocci
...
This replaces an if + ABORT_NOW() by BUG_ON(). It might change behavior,
because BUG_ON will result in a no-op if not enabled.
2021-09-17 17:22:05 +02:00
Tim Duesterhus
63ee0e4c01
DEV: coccinelle: Add xalloc_size.cocci
...
This commits the Coccinelle patch to clean up sizeof handling for malloc/calloc.
2021-09-17 17:22:05 +02:00
Tim Duesterhus
c1af0bae69
DEV: coccinelle: Add ist.cocci
...
This commits the Coccinelle patch to clean up ist handling.
2021-09-17 17:22:05 +02:00