]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add semantic patch to remove checking for isc_mem_get() return value
authorOndřej Surý <ondrej@sury.org>
Tue, 16 Jul 2019 13:50:45 +0000 (15:50 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 23 Jul 2019 19:32:35 +0000 (15:32 -0400)
commitf63e6969670ff28e7559f803cafdb3c356568f0a
tree9eeb6f4d3455c42252ea26f7f2431168e332c634
parent7f828a213c0e0a1d0ebf0c8aeb8b0a854e76084e
Add semantic patch to remove checking for isc_mem_get() return value

The isc_mem_get() cannot fail gracefully now, it either gets memory of
assert()s.  The added semantic patch cleans all the blocks checking whether
the return value of isc_mem_get() was NULL.
cocci/isc_mem_get_never_fail.spatch [new file with mode: 0644]