open5gs/lib/sbi
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
..
contrib Add only one 5GC scenario (call-flow) 2020-06-17 01:22:28 -04:00
custom [SBI] Fixed openapitools MAP generation (#2103) 2023-02-26 10:01:08 +09:00
openapi [SBI] Ignore unknown enum values and continue parsing (#2622) (#2649) 2023-10-26 22:44:51 +09:00
support [SBI] Ignore unknown enum values and continue parsing (#2622) (#2649) 2023-10-26 22:44:51 +09:00
client.c [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
client.h [SBI] SearchResult.validityPeriod 3600->30s (#3210) 2024-05-17 14:54:32 +09:00
context.c [POOL] refactor memory pool in AMF (#3196) 2024-06-30 22:03:13 +09:00
context.h [NRF] Fix the subscription valdityTime (#3360 #3361 #3363 #3364) 2024-08-04 13:32:53 +09:00
conv.c clang scan-build static analysis findings/resolutions (#3387) 2024-08-16 16:42:12 +09:00
conv.h [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
meson.build [SBI] Fixed openapitools MAP generation (#2103) 2023-02-26 10:01:08 +09:00
message.c [SMF] Handle SDM subscription to UDM during PDU session lifetime 2024-08-16 15:51:06 +09:00
message.h [SMF] Handle SDM subscription to UDM during PDU session lifetime 2024-08-16 15:51:06 +09:00
mhd-server.c [POOL] refactor memory in HTTP server (#3196) 2024-06-30 22:03:13 +09:00
nf-sm.c [SBI] SearchResult.validityPeriod 3600->30s (#3210) 2024-05-17 14:54:32 +09:00
nf-sm.h [SBI] SearchResult.validityPeriod 3600->30s (#3210) 2024-05-17 14:54:32 +09:00
nghttp2-server.c [POOL] refactor memory in HTTP server (#3196) 2024-06-30 22:03:13 +09:00
nnrf-build.c [NRF] Fix the subscription valdityTime (#3360 #3361 #3363 #3364) 2024-08-04 13:32:53 +09:00
nnrf-build.h [SBI] Added Handler for Subscription PATCH (#2152) 2023-03-12 22:06:19 +09:00
nnrf-handler.c Release v2.7.2 (Compilation error fix) 2024-08-04 21:10:00 +09:00
nnrf-handler.h [SBI] Added Handler for Subscription PATCH (#2152) 2023-03-12 22:06:19 +09:00
nnrf-path.c [SBI] Fixed invalid format of subscrCond (#2630) 2023-09-24 09:01:59 +09:00
nnrf-path.h [SBI] Added Handler for Subscription PATCH (#2152) 2023-03-12 22:06:19 +09:00
ogs-sbi.h UE context transfer (#3052) 2024-03-21 07:07:25 +09:00
path.c [POOL] change cycle to hash id in xact (#3196) 2024-06-30 22:03:13 +09:00
path.h [SBI,NF] Don't treat SBI connection errors as asserts 2023-02-07 22:49:11 +09:00
server.c [POOL] refactor memory in HTTP server (#3196) 2024-06-30 22:03:13 +09:00
server.h [POOL] refactor memory in HTTP server (#3196) 2024-06-30 22:03:13 +09:00
timer.c [SBI] Added Handler for Subscription PATCH (#2152) 2023-03-12 22:06:19 +09:00
timer.h [SBI] Added Handler for Subscription PATCH (#2152) 2023-03-12 22:06:19 +09:00
types.c UPF HA - release/establish new PDU session in CM_IDLE (#2471) 2023-07-25 22:38:38 +09:00
types.h [SEPP] Initial Update for 5G Roaming (#2739) 2023-11-19 19:34:51 +09:00
yuarel.c Added NRF 2020-05-18 17:00:37 -04:00
yuarel.h Added NRF 2020-05-18 17:00:37 -04:00