open5gs/lib/ipfw
Sukchan Lee 333d3fe1c6 clang scan-build static analysis findings/resolutions (#3387)
The clang scan-build procedure

```
Assume Ubuntu docker container with open5gs mounted to /src.

Assume these tools are installed to docker container:
sudo apt install -y clang-tools clang

For easy reference to clang scan-build tool:
Put normal open5gs build procedure into a file called /src/build

=======================
Inside docker container:
=======================
export CLANG_OUT_DIR=/src/scan_build_results

scan-build -disable-checker deadcode.DeadStores --override-compiler --keep-going
 --exclude subprojects --exclude tests --exclude lib/asn1c -maxloop 200 -o $CLANG_OUT_DIR -plist-html /src/build 2>&1 | tee /src/logclang.txt

=======================
Results:
=======================
Results are in html format in $CLANG_OUT_DIR - top level index.html
```

Note that in this analysis the following suppressions were assumed:
- no deadcode.DeadStores analysis since those are not functional findings
- exclude lib/asn1c for reason that is outside of open5gs control
- exclude tests for reason that those are not functional findings
- exclude subprojects since those are outside of open5gs control
2024-08-16 16:42:12 +09:00
..
objs/include_e [Alpine] Add Dockerfile and Document 2021-04-30 22:13:04 +09:00
dummynet.c clang scan-build static analysis findings/resolutions (#3387) 2024-08-16 16:42:12 +09:00
expand_number.c Initial proposal CUPS using PFCP 2020-04-26 15:36:05 -04:00
glue.c test: Porting FreeBSD 2021-02-08 14:25:40 -05:00
glue.h [Alpine] remove GLIBC macro (#957) 2021-04-30 22:16:07 +09:00
humanize_number.c Initial proposal CUPS using PFCP 2020-04-26 15:36:05 -04:00
ipfw2.c clang scan-build static analysis findings/resolutions (#3387) 2024-08-16 16:42:12 +09:00
ipfw2.h [IPFilter] Assert if getprotobyname() problem (#977) 2021-05-07 10:47:10 +09:00
ipv6.c [ipfw] Fix memory leak when parsing ipv6 2023-09-27 20:35:33 +09:00
meson.build [NRF] Fixed library load error 2022-08-26 10:57:11 +09:00
missing.h Initial proposal CUPS using PFCP 2020-04-26 15:36:05 -04:00
ogs-ipfw.c [SMF] Added Bi-Directional Flow (#2909) 2024-02-17 20:43:15 +01:00
ogs-ipfw.h [SMF] Added Bi-Directional Flow (#2909) 2024-02-17 20:43:15 +01:00
tables.c clang scan-build static analysis findings/resolutions (#3387) 2024-08-16 16:42:12 +09:00