]> git.proxmox.com Git - mirror_qemu.git/commit - MAINTAINERS
scripts/coccinelle: add error-use-after-free.cocci
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 24 Mar 2020 15:36:25 +0000 (18:36 +0300)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 4 Apr 2020 12:14:09 +0000 (14:14 +0200)
commitd1d3a99795006d81f10c98927b0c2ad270bc78fd
tree6a075b8c51b4ef7262b77ee94f1ac4c03515ad66
parent146aa0f104bb3bf88e43c4082a0bfc4bbda4fbd8
scripts/coccinelle: add error-use-after-free.cocci

Add script to find and fix trivial use-after-free of Error objects.
How to use:
spatch --sp-file scripts/coccinelle/error-use-after-free.cocci \
 --macro-file scripts/cocci-macro-file.h --in-place \
 --no-show-diff ( FILES... | --use-gitgrep . )

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200324153630.11882-2-vsementsov@virtuozzo.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[Pastos in commit message and comment fixed, globbing in MAINTAINERS
expanded]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
MAINTAINERS
scripts/coccinelle/error-use-after-free.cocci [new file with mode: 0644]