]> git.ipfire.org Git - thirdparty/bind9.git/commit
new: dev: Add spatch to detect implicit bool/int/result cast
authorColin Vidal <colin@isc.org>
Wed, 12 Nov 2025 10:31:37 +0000 (11:31 +0100)
committerColin Vidal <colin@isc.org>
Wed, 12 Nov 2025 10:31:37 +0000 (11:31 +0100)
commit2affdbce199715835a2c84f25fd9c61318985883
tree6d036dd341b08b502adf211f4e784c856e769dc7
parentfbc9262c39174f23db2a6205346a3a8825a937a2
parent3b3bb3eb80d62ce3a226bb675268ff92b4b54ef4
new: dev: Add spatch to detect implicit bool/int/result cast

Detection of implicit cast from a boolean into an int, or an
isc_result_t into a boolean (either in an assignement or return
position).

If such pattern is found, a warning comment is added into the code (and
the CI will fails) so the error can be spotted and manually fixed.

Merge branch 'colin/cocci-detect-iscresult-int-implicit-casts' into 'main'

See merge request isc-projects/bind9!11095