]> git.ipfire.org Git - thirdparty/curl.git/commit
checksrc: introduce 'banfunc' to ban specific functions
authorDaniel Stenberg <daniel@haxx.se>
Fri, 27 Dec 2024 08:21:56 +0000 (09:21 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 30 Dec 2024 07:25:56 +0000 (08:25 +0100)
commitc445b7426a64f0cb53cbd5558993d6a6f9060943
tree14ef143d8e63654ce597e9752d25934326fd47e4
parent66e5351e0adda5891b2ff17ccbafc81f620c0e01
checksrc: introduce 'banfunc' to ban specific functions

Use 'banfunc' and 'allowfunc' in .checksrc to specify which functions to
ban or allow to be used. This saves us from having to edit the script
going forward when we want to ban or allow specific functions.

This replaces a set of previous rules and all banned functions are now
checked with the BANNEDFUNC rule.

There is a set of default banned functions, shown by invoking
./checksrc.

Also, -a and -b options are added to specify allowed or banned functions
on the command line.

Closes #15835
docs/examples/.checksrc
lib/.checksrc
lib/strerror.c
scripts/checksrc.pl
src/.checksrc
tests/data/test1185
tests/libtest/.checksrc
tests/libtest/stub_gssapi.c
tests/server/.checksrc