]> git.ipfire.org Git - thirdparty/curl.git/commit
checksrc: reduce exceptions, apply again to curlx
authorViktor Szakats <commit@vsz.me>
Fri, 27 Jun 2025 12:21:44 +0000 (14:21 +0200)
committerViktor Szakats <commit@vsz.me>
Fri, 27 Jun 2025 15:33:35 +0000 (17:33 +0200)
commitf9656445ba275efca02994808f1a89cf055e5e44
treee1f6fae609d7033262b8468b2da90ac120a6c6e3
parent081e78b023b1fdd76f4a65a2305bc8a63bab1ba5
checksrc: reduce exceptions, apply again to curlx

- tests/libtest: move exception to `stub_gssapi.h`.
- tests/libtest: move remaining exception to `testtrace.c`.
- tests/server: drop obsolete exception.
- docs/examples: move `BANNEDFUNC` exceptions to local files (3 lines).
- docs/examples: move `ERRNOVAR` exception to `ephiperfifo.c`.
- docs/examples: drop `typedef struct` (8 files).
- lib/curlx: add `.checksrc` with banned funcs copied from lib.
- checksrc: ban `strncpy`, `strtok_r`, `strtoul` by default.
  Drop local bans. Add exception for `strtoul` to `tests/server'.
- lib, src: sync banned funcs.

Also:
- REUSE: drop `stunnel.pem`, it no longer exists.
- docs/examples: formatting.
- docs/examples: simplify some `sizeof()`s.

Closes #17764
27 files changed:
REUSE.toml
docs/examples/.checksrc [deleted file]
docs/examples/Makefile.am
docs/examples/crawler.c
docs/examples/ephiperfifo.c
docs/examples/evhiperfifo.c
docs/examples/ghiper.c
docs/examples/hiperfifo.c
docs/examples/http2-upload.c
docs/examples/multi-event.c
docs/examples/multi-uv.c
docs/examples/synctime.c
docs/examples/xmlstream.c
lib/.checksrc
lib/Makefile.am
lib/curlx/.checksrc [new file with mode: 0644]
lib/vauth/.checksrc
lib/vquic/.checksrc
lib/vssh/.checksrc
lib/vtls/.checksrc
scripts/checksrc.pl
src/.checksrc
tests/libtest/.checksrc [deleted file]
tests/libtest/Makefile.am
tests/libtest/stub_gssapi.h
tests/libtest/testtrace.c
tests/server/.checksrc