|
Enabled checks: |
|
android-cloexec-accept |
|
android-cloexec-accept4 |
|
android-cloexec-creat |
|
android-cloexec-dup |
|
android-cloexec-epoll-create |
|
android-cloexec-epoll-create1 |
|
android-cloexec-fopen |
|
android-cloexec-inotify-init |
|
android-cloexec-inotify-init1 |
|
android-cloexec-memfd-create |
|
android-cloexec-open |
|
android-cloexec-pipe |
|
android-cloexec-pipe2 |
|
android-cloexec-socket |
|
android-comparison-in-temp-failure-retry |
|
bugprone-argument-comment |
|
bugprone-assert-side-effect |
|
bugprone-bad-signal-to-kill-thread |
|
bugprone-bool-pointer-implicit-conversion |
|
bugprone-branch-clone |
|
bugprone-copy-constructor-init |
|
bugprone-dangling-handle |
|
bugprone-dynamic-static-initializers |
|
bugprone-exception-escape |
|
bugprone-fold-init-type |
|
bugprone-forward-declaration-namespace |
|
bugprone-forwarding-reference-overload |
|
bugprone-inaccurate-erase |
|
bugprone-incorrect-roundings |
|
bugprone-infinite-loop |
|
bugprone-integer-division |
|
bugprone-lambda-function-name |
|
bugprone-macro-parentheses |
|
bugprone-macro-repeated-side-effects |
|
bugprone-misplaced-operator-in-strlen-in-alloc |
|
bugprone-misplaced-pointer-arithmetic-in-alloc |
|
bugprone-misplaced-widening-cast |
|
bugprone-move-forwarding-reference |
|
bugprone-multiple-statement-macro |
|
bugprone-narrowing-conversions |
|
bugprone-no-escape |
|
bugprone-not-null-terminated-result |
|
bugprone-parent-virtual-call |
|
bugprone-posix-return |
|
bugprone-reserved-identifier |
|
bugprone-signed-char-misuse |
|
bugprone-sizeof-container |
|
bugprone-sizeof-expression |
|
bugprone-spuriously-wake-up-functions |
|
bugprone-string-constructor |
|
bugprone-string-integer-assignment |
|
bugprone-string-literal-with-embedded-nul |
|
bugprone-suspicious-enum-usage |
|
bugprone-suspicious-include |
|
bugprone-suspicious-memset-usage |
|
bugprone-suspicious-missing-comma |
|
bugprone-suspicious-semicolon |
|
bugprone-suspicious-string-compare |
|
bugprone-swapped-arguments |
|
bugprone-terminating-continue |
|
bugprone-throw-keyword-missing |
|
bugprone-too-small-loop-variable |
|
bugprone-undefined-memory-manipulation |
|
bugprone-undelegated-constructor |
|
bugprone-unhandled-self-assignment |
|
bugprone-unused-raii |
|
bugprone-unused-return-value |
|
bugprone-use-after-move |
|
bugprone-virtual-near-miss |
|
cert-con36-c |
|
cert-con54-cpp |
|
cert-dcl03-c |
|
cert-dcl16-c |
|
cert-dcl21-cpp |
|
cert-dcl37-c |
|
cert-dcl50-cpp |
|
cert-dcl51-cpp |
|
cert-dcl54-cpp |
|
cert-dcl58-cpp |
|
cert-dcl59-cpp |
|
cert-env33-c |
|
cert-err09-cpp |
|
cert-err34-c |
|
cert-err52-cpp |
|
cert-err58-cpp |
|
cert-err60-cpp |
|
cert-err61-cpp |
|
cert-fio38-c |
|
cert-flp30-c |
|
cert-mem57-cpp |
|
cert-msc30-c |
|
cert-msc32-c |
|
cert-msc50-cpp |
|
cert-msc51-cpp |
|
cert-oop11-cpp |
|
cert-oop54-cpp |
|
cert-oop57-cpp |
|
cert-oop58-cpp |
|
cert-pos44-c |
|
cert-str34-c |
|
clang-analyzer-apiModeling.StdCLibraryFunctions |
|
clang-analyzer-apiModeling.TrustNonnull |
|
clang-analyzer-apiModeling.google.GTest |
|
clang-analyzer-apiModeling.llvm.CastValue |
|
clang-analyzer-apiModeling.llvm.ReturnValue |
|
clang-analyzer-core.CallAndMessage |
|
clang-analyzer-core.CallAndMessageModeling |
|
clang-analyzer-core.DivideZero |
|
clang-analyzer-core.DynamicTypePropagation |
|
clang-analyzer-core.NonNullParamChecker |
|
clang-analyzer-core.NonnilStringConstants |
|
clang-analyzer-core.NullDereference |
|
clang-analyzer-core.StackAddrEscapeBase |
|
clang-analyzer-core.StackAddressEscape |
|
clang-analyzer-core.UndefinedBinaryOperatorResult |
|
clang-analyzer-core.VLASize |
|
clang-analyzer-core.builtin.BuiltinFunctions |
|
clang-analyzer-core.builtin.NoReturnFunctions |
|
clang-analyzer-core.uninitialized.ArraySubscript |
|
clang-analyzer-core.uninitialized.Assign |
|
clang-analyzer-core.uninitialized.Branch |
|
clang-analyzer-core.uninitialized.CapturedBlockVariable |
|
clang-analyzer-core.uninitialized.UndefReturn |
|
clang-analyzer-cplusplus.InnerPointer |
|
clang-analyzer-cplusplus.Move |
|
clang-analyzer-cplusplus.NewDelete |
|
clang-analyzer-cplusplus.NewDeleteLeaks |
|
clang-analyzer-cplusplus.PlacementNew |
|
clang-analyzer-cplusplus.PureVirtualCall |
|
clang-analyzer-cplusplus.SelfAssignment |
|
clang-analyzer-cplusplus.SmartPtrModeling |
|
clang-analyzer-cplusplus.VirtualCallModeling |
|
clang-analyzer-deadcode.DeadStores |
|
clang-analyzer-fuchsia.HandleChecker |
|
clang-analyzer-nullability.NullPassedToNonnull |
|
clang-analyzer-nullability.NullReturnedFromNonnull |
|
clang-analyzer-nullability.NullabilityBase |
|
clang-analyzer-nullability.NullableDereferenced |
|
clang-analyzer-nullability.NullablePassedToNonnull |
|
clang-analyzer-nullability.NullableReturnedFromNonnull |
|
clang-analyzer-optin.cplusplus.UninitializedObject |
|
clang-analyzer-optin.cplusplus.VirtualCall |
|
clang-analyzer-optin.mpi.MPI-Checker |
|
clang-analyzer-optin.osx.OSObjectCStyleCast |
|
clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker |
|
clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker |
|
clang-analyzer-optin.performance.GCDAntipattern |
|
clang-analyzer-optin.performance.Padding |
|
clang-analyzer-optin.portability.UnixAPI |
|
clang-analyzer-osx.API |
|
clang-analyzer-osx.MIG |
|
clang-analyzer-osx.NSOrCFErrorDerefChecker |
|
clang-analyzer-osx.NumberObjectConversion |
|
clang-analyzer-osx.OSObjectRetainCount |
|
clang-analyzer-osx.ObjCProperty |
|
clang-analyzer-osx.SecKeychainAPI |
|
clang-analyzer-osx.cocoa.AtSync |
|
clang-analyzer-osx.cocoa.AutoreleaseWrite |
|
clang-analyzer-osx.cocoa.ClassRelease |
|
clang-analyzer-osx.cocoa.Dealloc |
|
clang-analyzer-osx.cocoa.IncompatibleMethodTypes |
|
clang-analyzer-osx.cocoa.Loops |
|
clang-analyzer-osx.cocoa.MissingSuperCall |
|
clang-analyzer-osx.cocoa.NSAutoreleasePool |
|
clang-analyzer-osx.cocoa.NSError |
|
clang-analyzer-osx.cocoa.NilArg |
|
clang-analyzer-osx.cocoa.NonNilReturnValue |
|
clang-analyzer-osx.cocoa.ObjCGenerics |
|
clang-analyzer-osx.cocoa.RetainCount |
|
clang-analyzer-osx.cocoa.RetainCountBase |
|
clang-analyzer-osx.cocoa.RunLoopAutoreleaseLeak |
|
clang-analyzer-osx.cocoa.SelfInit |
|
clang-analyzer-osx.cocoa.SuperDealloc |
|
clang-analyzer-osx.cocoa.UnusedIvars |
|
clang-analyzer-osx.cocoa.VariadicMethodTypes |
|
clang-analyzer-osx.coreFoundation.CFError |
|
clang-analyzer-osx.coreFoundation.CFNumber |
|
clang-analyzer-osx.coreFoundation.CFRetainRelease |
|
clang-analyzer-osx.coreFoundation.containers.OutOfBounds |
|
clang-analyzer-osx.coreFoundation.containers.PointerSizedValues |
|
clang-analyzer-security.FloatLoopCounter |
|
clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling |
|
clang-analyzer-security.insecureAPI.SecuritySyntaxChecker |
|
clang-analyzer-security.insecureAPI.UncheckedReturn |
|
clang-analyzer-security.insecureAPI.bcmp |
|
clang-analyzer-security.insecureAPI.bcopy |
|
clang-analyzer-security.insecureAPI.bzero |
|
clang-analyzer-security.insecureAPI.decodeValueOfObjCType |
|
clang-analyzer-security.insecureAPI.getpw |
|
clang-analyzer-security.insecureAPI.gets |
|
clang-analyzer-security.insecureAPI.mkstemp |
|
clang-analyzer-security.insecureAPI.mktemp |
|
clang-analyzer-security.insecureAPI.rand |
|
clang-analyzer-security.insecureAPI.strcpy |
|
clang-analyzer-security.insecureAPI.vfork |
|
clang-analyzer-unix.API |
|
clang-analyzer-unix.DynamicMemoryModeling |
|
clang-analyzer-unix.Malloc |
|
clang-analyzer-unix.MallocSizeof |
|
clang-analyzer-unix.MismatchedDeallocator |
|
clang-analyzer-unix.Vfork |
|
clang-analyzer-unix.cstring.BadSizeArg |
|
clang-analyzer-unix.cstring.CStringModeling |
|
clang-analyzer-unix.cstring.NullArg |
|
clang-analyzer-valist.CopyToSelf |
|
clang-analyzer-valist.Uninitialized |
|
clang-analyzer-valist.Unterminated |
|
clang-analyzer-valist.ValistBase |
|
clang-analyzer-webkit.NoUncountedMemberChecker |
|
clang-analyzer-webkit.RefCntblBaseVirtualDtor |
|
misc-definitions-in-headers |
|
misc-misplaced-const |
|
misc-new-delete-overloads |
|
misc-no-recursion |
|
misc-non-copyable-objects |
|
misc-non-private-member-variables-in-classes |
|
misc-redundant-expression |
|
misc-static-assert |
|
misc-throw-by-value-catch-by-reference |
|
misc-unconventional-assign-operator |
|
misc-uniqueptr-reset-release |
|
misc-unused-alias-decls |
|
misc-unused-using-decls |
|
|
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/TLVDecoder.c |
|
/workspaces/magma/lte/gateway/c/oai/common/TLVDecoder.c:49:40: warning: 'bstr' declared with a const-qualified typedef; results in the type being 'struct tagbstring *const' instead of 'const struct tagbstring *' [misc-misplaced-const] |
|
bstring dump_bstring_xml(const bstring bstr) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:38:28: note: typedef declared here |
|
typedef struct tagbstring* bstring; |
|
^ |
|
4308 warnings generated. |
|
Suppressed 4307 warnings (4305 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/TLVEncoder.c |
|
4298 warnings generated. |
|
Suppressed 4298 warnings (4296 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/backtrace.c |
|
3095 warnings generated. |
|
Suppressed 3095 warnings (3093 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/async_system.c |
|
/workspaces/magma/lte/gateway/c/oai/common/async_system.c:64:7: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/async_system.c:64:7: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/common/async_system.c:68:12: warning: calling 'system' uses a command processor [cert-env33-c] |
|
rc = system( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/async_system.c:137:3: warning: Value stored to 'rv' is never read [clang-analyzer-deadcode.DeadStores] |
|
rv = bvcformata(bstr, 1024, format, args); // big number, see bvcformata |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/async_system.c:137:3: note: Value stored to 'rv' is never read |
|
10554 warnings generated. |
|
Suppressed 10551 warnings (10528 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/common_types.c |
|
/workspaces/magma/lte/gateway/c/oai/common/common_types.c:92:7: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (fteid->ipv4 && fteid->ipv6) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/common_types.c:92:22: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (fteid->ipv4 && fteid->ipv6) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/common_types.c:121:42: warning: 'bstr' declared with a const-qualified typedef; results in the type being 'struct tagbstring *const' instead of 'const struct tagbstring *' [misc-misplaced-const] |
|
void bstring_to_ip_address(bstring const bstr, ip_address_t* const ip_address) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:38:28: note: typedef declared here |
|
typedef struct tagbstring* bstring; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/common_types.c:183:35: warning: 'bstr' declared with a const-qualified typedef; results in the type being 'struct tagbstring *const' instead of 'const struct tagbstring *' [misc-misplaced-const] |
|
void bstring_to_paa(const bstring bstr, paa_t* paa) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:38:28: note: typedef declared here |
|
typedef struct tagbstring* bstring; |
|
^ |
|
5651 warnings generated. |
|
11302 warnings generated. |
|
Suppressed 11294 warnings (11290 in non-user code, 4 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/conversions.c |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.c:86:12: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c] |
|
high = ascii_to_hex_table[*hex++]; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.c:94:11: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c] |
|
low = ascii_to_hex_table[*hex++]; |
|
^ |
|
4076 warnings generated. |
|
Suppressed 4072 warnings (4070 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/digest.c |
|
5312 warnings generated. |
|
Suppressed 5312 warnings (5310 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/dynamic_memory_check.c |
|
5058 warnings generated. |
|
Suppressed 5058 warnings (5056 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/enum_string.c |
|
4229 warnings generated. |
|
Suppressed 4229 warnings (4227 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/mcc_mnc_itu.c |
|
5058 warnings generated. |
|
Suppressed 5058 warnings (5056 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/pid_file.c |
|
/workspaces/magma/lte/gateway/c/oai/common/pid_file.c:96:38: warning: 'open' should use O_CLOEXEC where possible [android-cloexec-open] |
|
pid_file_name, O_RDWR | O_CREAT, |
|
^ |
|
| O_CLOEXEC |
|
5658 warnings generated. |
|
Suppressed 5657 warnings (5655 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:46:5: warning: switch has 3 consecutive identical branches [bugprone-branch-clone] |
|
case GTPV1U_CREATE_TUNNEL_REQ: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:61:12: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:76:51: warning: Value stored to 'mme_app_est_cnf' during its initialization is never read [clang-analyzer-deadcode.DeadStores] |
|
itti_mme_app_connection_establishment_cnf_t mme_app_est_cnf = {0}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:76:51: note: Value stored to 'mme_app_est_cnf' during its initialization is never read |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:87:5: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case MME_APP_INITIAL_CONTEXT_SETUP_RSP: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:92:12: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:155:5: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case S1AP_UE_CAPABILITIES_IND: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:167:12: note: last of these clones ends here |
|
break; |
|
^ |
|
10531 warnings generated. |
|
21062 warnings generated. |
|
Suppressed 21054 warnings (21008 in non-user code, 46 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/shared_ts_log.c |
|
/workspaces/magma/lte/gateway/c/oai/common/shared_ts_log.c:65:16: warning: Excessive padding in 'struct oai_shared_log_s' (219 padding bytes, where 91 is optimal). |
|
Optimal fields order: |
|
log_free_message_queue, |
|
log_message_queue, |
|
log_message_number, |
|
qbmme, |
|
thread_context_htbl, |
|
logger_callback, |
|
log_start_time_second, |
|
running, |
|
consider reordering the fields or adding explicit padding members [clang-analyzer-optin.performance.Padding] |
|
typedef struct oai_shared_log_s { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/shared_ts_log.c:65:16: note: Excessive padding in 'struct oai_shared_log_s' (219 padding bytes, where 91 is optimal). Optimal fields order: log_free_message_queue, log_message_queue, log_message_number, qbmme, thread_context_htbl, logger_callback, log_start_time_second, running, consider reordering the fields or adding explicit padding members |
|
/workspaces/magma/lte/gateway/c/oai/common/shared_ts_log.c:297:11: warning: Although the value stored to 'rv' is used in the enclosing expression, the value is never actually read from 'rv' [clang-analyzer-deadcode.DeadStores] |
|
while ((rv = lfds710_queue_bmm_dequeue( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/shared_ts_log.c:297:11: note: Although the value stored to 'rv' is used in the enclosing expression, the value is never actually read from 'rv' |
|
10530 warnings generated. |
|
Suppressed 10528 warnings (10505 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/log.c |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:280:13: warning: function 'get_thread_context' is within a recursive call chain [misc-no-recursion] |
|
static void get_thread_context(log_thread_ctxt_t** thread_ctxt) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:526:55: warning: use 'fopen' mode 'e' to set O_CLOEXEC [android-cloexec-fopen] |
|
g_oai_log.log_fd = fopen(bdata(config->output), "w"); |
|
^~~ |
|
"we" |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:540:25: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
int server_port = atoi((const char*) g_oai_log.bserver_port->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:896:3: warning: Value stored to 'hash_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
hash_rc = hashtable_ts_get( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:896:3: note: Value stored to 'hash_rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:904:5: warning: Value stored to 'rv' is never read [clang-analyzer-deadcode.DeadStores] |
|
rv = bformata(message->bstr, "%s", messageP); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:904:5: note: Value stored to 'rv' is never read |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1132:7: warning: Value stored to 'hash_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
hash_rc = hashtable_ts_get( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1132:7: note: Value stored to 'hash_rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1151:23: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
filename_length = strlen(short_source_fileP); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1153:7: warning: Value stored to 'rv' is never read [clang-analyzer-deadcode.DeadStores] |
|
rv = bformata( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1153:7: note: Value stored to 'rv' is never read |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1232:3: warning: Value stored to 'hash_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
hash_rc = hashtable_ts_get( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1232:3: note: Value stored to 'hash_rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1269:3: warning: Value stored to 'hash_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
hash_rc = hashtable_ts_get( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1269:3: note: Value stored to 'hash_rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1279:6: warning: function 'log_message' is within a recursive call chain [misc-no-recursion] |
|
void log_message( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:280:13: note: example recursive call chain, starting from function 'get_thread_context' |
|
static void get_thread_context(log_thread_ctxt_t** thread_ctxt) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:292:7: note: Frame #1: function 'get_thread_context' calls function 'log_message' here: |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:71:7: note: expanded from macro '_Assert_' |
|
OAILOG_CRITICAL( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:411:5: note: expanded from macro 'OAILOG_CRITICAL' |
|
log_message( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1289:3: note: Frame #2: function 'log_message' calls function 'log_message_int' here: |
|
log_message_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1359:3: note: Frame #3: function 'log_message_int' calls function 'get_thread_context' here: |
|
get_thread_context(&thread_ctxt); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1359:3: note: ... which was the starting point of the recursive call chain; there may be other cycles |
|
/workspaces/magma/lte/gateway/c/oai/common/log.c:1345:6: warning: function 'log_message_int' is within a recursive call chain [misc-no-recursion] |
|
void log_message_int( |
|
^ |
|
10486 warnings generated. |
|
Suppressed 10474 warnings (10451 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/state_converter.cpp |
|
/workspaces/magma/lte/gateway/c/oai/common/state_converter.cpp:153:3: warning: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy] |
|
strcpy( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/state_converter.cpp:153:3: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 |
|
62369 warnings generated. |
|
Suppressed 62372 warnings (62368 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/sentry_wrapper.cpp |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/common_utility_funs.cpp |
|
/workspaces/magma/lte/gateway/c/oai/common/common_utility_funs.cpp:24:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/common_utility_funs.cpp:37:25: warning: loop variable has narrower type 'uint8_t' (aka 'unsigned char') than iteration's upper bound 'int' [bugprone-too-small-loop-variable] |
|
for (uint8_t itr = 0; itr < mme_config.mode_map_config.num; itr++) { |
|
^ |
|
64585 warnings generated. |
|
Suppressed 64587 warnings (64582 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/common/orc8r/protos/common.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/orc8r/protos/common.pb.cc:763:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/orc8r/protos/common.pb.cc:157:13: warning: initialization of 'dynamic_init_dummy_orc8r_2fprotos_2fcommon_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_orc8r_2fprotos_2fcommon_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_orc8r_2fprotos_2fcommon_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
61251 warnings generated. |
|
Suppressed 61253 warnings (61249 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/common/orc8r/protos/redis.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/orc8r/protos/redis.pb.cc:98:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/orc8r/protos/redis.pb.cc:80:13: warning: initialization of 'dynamic_init_dummy_orc8r_2fprotos_2fredis_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_orc8r_2fprotos_2fredis_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_orc8r_2fprotos_2fredis_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
61210 warnings generated. |
|
Suppressed 61212 warnings (61208 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/oai/common_types.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/oai/common_types.pb.cc:1773:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/oai/common_types.pb.cc:251:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/oai/common_types.pb.cc:1904:59: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_apn_configs(i), target, stream); |
|
^ |
|
61282 warnings generated. |
|
Suppressed 61283 warnings (61279 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/glogwrapper/glog_logging.cpp |
|
67576 warnings generated. |
|
Suppressed 67576 warnings (67576 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/redis_utils/redis_client.cpp |
|
69190 warnings generated. |
|
Suppressed 69194 warnings (69190 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_24.008_cc_ies.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_24.008_common_ies.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_24.008_common_ies.c:293:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
return (encoded + encoded_rc); |
|
^ |
|
4314 warnings generated. |
|
Suppressed 4313 warnings (4311 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_24.008_gmm_ies.c |
|
5670 warnings generated. |
|
Suppressed 5670 warnings (5668 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_24.008_gprs_common_ies.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_24.008_mm_ies.c |
|
5673 warnings generated. |
|
Suppressed 5673 warnings (5671 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_24.008_sm_ies.c |
|
5667 warnings generated. |
|
Suppressed 5667 warnings (5665 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:86:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
m = ((unsigned) n) >> 1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:301:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
x = (x * 10) + v; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:461:64: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
if (i >= b->slen || b->data[i] != '=' || bconchar(out, c0) < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:486:27: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
if (bconchar(out, c0) < 0 || bconchar(out, c1) < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:486:52: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
if (bconchar(out, c0) < 0 || bconchar(out, c1) < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:501:23: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
if (bconchar(out, c0) < 0 || bconchar(out, c1) < 0 || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:501:48: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
if (bconchar(out, c0) < 0 || bconchar(out, c1) < 0 || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:502:23: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
bconchar(out, c2) < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:808:27: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
if (0 > bconchar(out, c)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:1074:17: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
if (1 != (ws->writeFn((b)->data, (b)->slen, 1, ws->parm))) { \ |
|
^ |
|
( ) |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:1074:54: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
if (1 != (ws->writeFn((b)->data, (b)->slen, 1, ws->parm))) { \ |
|
^ |
|
( ) |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:1075:9: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
ws->isEOF = 1; \ |
|
^ |
|
( ) |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:1100:5: warning: function 'bwsWriteBstr' is within a recursive call chain [misc-no-recursion] |
|
int bwsWriteBstr(struct bwriteStream* ws, const_bstring b) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:1100:5: note: example recursive call chain, starting from function 'bwsWriteBstr' |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:1112:12: note: Frame #1: function 'bwsWriteBstr' calls function 'bwsWriteBstr' here: |
|
return bwsWriteBstr(ws, &empty); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstraux.c:1112:12: note: ... which was the starting point of the recursive call chain; there may be other cycles |
|
3669 warnings generated. |
|
Suppressed 3656 warnings (3654 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:281:46: warning: Call to 'malloc' has an allocation size of 0 bytes [clang-analyzer-optin.portability.UnixAPI] |
|
while (NULL == (b->data = (unsigned char*) bstr__alloc(b->mlen = i))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:41:24: note: expanded from macro 'bstr__alloc' |
|
#define bstr__alloc(x) malloc(x) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3132:7: note: Assuming 'fmt' is not equal to NULL |
|
if (fmt == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3132:3: note: Taking false branch |
|
if (fmt == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3138:7: note: Assuming the condition is false |
|
if ((n = (int) (2 * strlen(fmt))) < START_VSNBUFF) n = START_VSNBUFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3138:3: note: Taking false branch |
|
if ((n = (int) (2 * strlen(fmt))) < START_VSNBUFF) n = START_VSNBUFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3139:23: note: Calling 'bfromcstralloc' |
|
if (NULL == (buff = bfromcstralloc(n + 2, ""))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:301:10: note: Calling 'bfromcstrrangealloc' |
|
return bfromcstrrangealloc(mlen, mlen, str); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:268:7: note: 'str' is not equal to NULL |
|
if (str == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:268:3: note: Taking false branch |
|
if (str == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:269:7: note: 'maxl' is >= 'minl' |
|
if (maxl < minl || minl < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:269:7: note: Left side of '||' is false |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:269:22: note: Assuming 'minl' is >= 0 |
|
if (maxl < minl || minl < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:269:3: note: Taking false branch |
|
if (maxl < minl || minl < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:273:7: note: Assuming the condition is true |
|
if ((size_t) minl < (j + 1)) minl = (int) (j + 1); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:273:3: note: Taking true branch |
|
if ((size_t) minl < (j + 1)) minl = (int) (j + 1); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:274:7: note: 'maxl' is < 'minl' |
|
if (maxl < minl) maxl = minl; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:274:3: note: Taking true branch |
|
if (maxl < minl) maxl = minl; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:278:7: note: Assuming 'b' is not equal to NULL |
|
if (b == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:278:3: note: Taking false branch |
|
if (b == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:281:10: note: Assuming the condition is true |
|
while (NULL == (b->data = (unsigned char*) bstr__alloc(b->mlen = i))) { |
|
^ |
|
/usr/lib/llvm-11/lib/clang/11.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL' |
|
# define NULL ((void*)0) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:281:3: note: Loop condition is true. Entering loop body |
|
while (NULL == (b->data = (unsigned char*) bstr__alloc(b->mlen = i))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:283:9: note: 'i' is not equal to 'k' |
|
if (i == k || i < minl) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:283:9: note: Left side of '||' is false |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:283:19: note: 'i' is >= 'minl' |
|
if (i == k || i < minl) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:283:5: note: Taking false branch |
|
if (i == k || i < minl) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:281:46: note: Call to 'malloc' has an allocation size of 0 bytes |
|
while (NULL == (b->data = (unsigned char*) bstr__alloc(b->mlen = i))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:41:24: note: expanded from macro 'bstr__alloc' |
|
#define bstr__alloc(x) malloc(x) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:626:44: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
#define upcase(c) (toupper((unsigned char) c)) |
|
^ |
|
() |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:627:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
#define downcase(c) (tolower((unsigned char) c)) |
|
^ |
|
() |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:628:44: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
#define wspace(c) (isspace((unsigned char) c)) |
|
^ |
|
() |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:685:9: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c] |
|
v = (char) downcase(b0->data[n]); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:719:11: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c] |
|
v = (char) downcase(b0->data[i]); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:728:9: warning: 'signed char' to 'int' conversion; consider casting to 'unsigned char' first. [bugprone-signed-char-misuse,cert-str34-c] |
|
v = (char) downcase(b0->data[m]); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:1816:12: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
sl = sizeof(int*) * mlen; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2233:47: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
if (term->slen == 1) return bsreadlna(r, s, term->data[0]); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2381:46: warning: narrowing conversion from 'unsigned char' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
if (term->slen == 1) return bsreadln(r, s, term->data[0]); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2465:33: warning: Potential leak of memory pointed to by 'b' [clang-analyzer-unix.Malloc] |
|
if (v > INT_MAX - c) return NULL; /* Overflow */ |
|
^ |
|
/usr/lib/llvm-11/lib/clang/11.0.0/include/stddef.h:89:24: note: expanded from macro 'NULL' |
|
# define NULL ((void*)0) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2498:7: note: Assuming 'sep' is not equal to NULL |
|
if (sep != NULL && (sep->slen < 0 || sep->data == NULL)) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2498:7: note: Left side of '&&' is true |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2498:23: note: Assuming field 'slen' is >= 0 |
|
if (sep != NULL && (sep->slen < 0 || sep->data == NULL)) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2498:23: note: Left side of '||' is false |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2498:40: note: Assuming field 'data' is not equal to NULL |
|
if (sep != NULL && (sep->slen < 0 || sep->data == NULL)) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2498:3: note: Taking false branch |
|
if (sep != NULL && (sep->slen < 0 || sep->data == NULL)) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2499:10: note: Calling 'bjoinblk' |
|
return bjoinblk(bl, sep->data, sep->slen); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2437:7: note: Assuming 'bl' is not equal to NULL |
|
if (bl == NULL || bl->qty < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2437:7: note: Left side of '||' is false |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2437:21: note: Assuming field 'qty' is >= 0 |
|
if (bl == NULL || bl->qty < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2437:3: note: Taking false branch |
|
if (bl == NULL || bl->qty < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2438:7: note: 'len' is >= 0 |
|
if (len < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2438:3: note: Taking false branch |
|
if (len < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2439:7: note: Assuming 'len' is > 0 |
|
if (len > 0 && blk == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2439:7: note: Left side of '&&' is true |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2439:18: note: 'blk' is not equal to NULL |
|
if (len > 0 && blk == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2439:3: note: Taking false branch |
|
if (len > 0 && blk == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2440:7: note: Assuming field 'qty' is >= 1 |
|
if (bl->qty < 1) return bfromStatic(""); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2440:3: note: Taking false branch |
|
if (bl->qty < 1) return bfromStatic(""); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2442:22: note: 'i' is < field 'qty' |
|
for (i = 0, c = 1; i < bl->qty; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2442:3: note: Loop condition is true. Entering loop body |
|
for (i = 0, c = 1; i < bl->qty; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2444:9: note: Assuming 'v' is >= 0 |
|
if (v < 0) return NULL; /* Invalid input */ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2444:5: note: Taking false branch |
|
if (v < 0) return NULL; /* Invalid input */ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2445:9: note: Assuming the condition is false |
|
if (v > INT_MAX - c) return NULL; /* Overflow */ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2445:5: note: Taking false branch |
|
if (v > INT_MAX - c) return NULL; /* Overflow */ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2442:22: note: Assuming 'i' is >= field 'qty' |
|
for (i = 0, c = 1; i < bl->qty; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2442:3: note: Loop condition is false. Execution continues on line 2449 |
|
for (i = 0, c = 1; i < bl->qty; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2449:17: note: Memory is allocated |
|
b = (bstring) bstr__alloc(sizeof(struct tagbstring)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:41:24: note: expanded from macro 'bstr__alloc' |
|
#define bstr__alloc(x) malloc(x) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2450:7: note: 'len' is not equal to 0 |
|
if (len == 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2450:3: note: Taking false branch |
|
if (len == 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2463:14: note: Field 'qty' is <= 512 |
|
if ((bl->qty > 512 || len > 127) && v / len != bl->qty - 1) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2463:10: note: Left side of '||' is false |
|
if ((bl->qty > 512 || len > 127) && v / len != bl->qty - 1) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2463:27: note: Assuming 'len' is <= 127 |
|
if ((bl->qty > 512 || len > 127) && v / len != bl->qty - 1) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2463:38: note: Left side of '&&' is false |
|
if ((bl->qty > 512 || len > 127) && v / len != bl->qty - 1) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2465:9: note: Assuming the condition is true |
|
if (v > INT_MAX - c) return NULL; /* Overflow */ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2465:5: note: Taking true branch |
|
if (v > INT_MAX - c) return NULL; /* Overflow */ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2465:33: note: Potential leak of memory pointed to by 'b' |
|
if (v > INT_MAX - c) return NULL; /* Overflow */ |
|
^ |
|
/usr/lib/llvm-11/lib/clang/11.0.0/include/stddef.h:89:24: note: expanded from macro 'NULL' |
|
# define NULL ((void*)0) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2499:23: warning: Access to field 'data' results in a dereference of a null pointer (loaded from variable 'sep') [clang-analyzer-core.NullDereference] |
|
return bjoinblk(bl, sep->data, sep->slen); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2498:7: note: Assuming 'sep' is equal to NULL |
|
if (sep != NULL && (sep->slen < 0 || sep->data == NULL)) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2498:19: note: Left side of '&&' is false |
|
if (sep != NULL && (sep->slen < 0 || sep->data == NULL)) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2499:23: note: Access to field 'data' results in a dereference of a null pointer (loaded from variable 'sep') |
|
return bjoinblk(bl, sep->data, sep->slen); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2541:5: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores] |
|
ret = p = i = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2541:5: note: Value stored to 'ret' is never read |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2615:5: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores] |
|
ret = p = i = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2615:5: note: Value stored to 'ret' is never read |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2615:11: warning: Although the value stored to 'p' is used in the enclosing expression, the value is never actually read from 'p' [clang-analyzer-deadcode.DeadStores] |
|
ret = p = i = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2615:11: note: Although the value stored to 'p' is used in the enclosing expression, the value is never actually read from 'p' |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2615:15: warning: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i' [clang-analyzer-deadcode.DeadStores] |
|
ret = p = i = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2615:15: note: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i' |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2616:10: warning: Value stored to 'i' is never read [clang-analyzer-deadcode.DeadStores] |
|
for (i = p = 0;;) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2616:10: note: Value stored to 'i' is never read |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:2998:5: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
{ r = vsnprintf(b, n, f, a); } |
|
^ |
|
() |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3161:7: warning: Potential leak of memory pointed to by 'buff' [clang-analyzer-unix.Malloc] |
|
return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3132:7: note: Assuming 'fmt' is not equal to NULL |
|
if (fmt == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3132:3: note: Taking false branch |
|
if (fmt == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3138:7: note: Assuming the condition is false |
|
if ((n = (int) (2 * strlen(fmt))) < START_VSNBUFF) n = START_VSNBUFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3138:3: note: Taking false branch |
|
if ((n = (int) (2 * strlen(fmt))) < START_VSNBUFF) n = START_VSNBUFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3139:23: note: Calling 'bfromcstralloc' |
|
if (NULL == (buff = bfromcstralloc(n + 2, ""))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:301:10: note: Calling 'bfromcstrrangealloc' |
|
return bfromcstrrangealloc(mlen, mlen, str); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:268:7: note: 'str' is not equal to NULL |
|
if (str == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:268:3: note: Taking false branch |
|
if (str == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:269:7: note: 'maxl' is >= 'minl' |
|
if (maxl < minl || minl < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:269:7: note: Left side of '||' is false |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:269:22: note: Assuming 'minl' is >= 0 |
|
if (maxl < minl || minl < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:269:3: note: Taking false branch |
|
if (maxl < minl || minl < 0) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:273:7: note: Assuming the condition is false |
|
if ((size_t) minl < (j + 1)) minl = (int) (j + 1); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:273:3: note: Taking false branch |
|
if ((size_t) minl < (j + 1)) minl = (int) (j + 1); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:274:7: note: 'maxl' is >= 'minl' |
|
if (maxl < minl) maxl = minl; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:274:3: note: Taking false branch |
|
if (maxl < minl) maxl = minl; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:277:17: note: Memory is allocated |
|
b = (bstring) bstr__alloc(sizeof(struct tagbstring)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:41:24: note: expanded from macro 'bstr__alloc' |
|
#define bstr__alloc(x) malloc(x) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:278:7: note: Assuming 'b' is not equal to NULL |
|
if (b == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:278:3: note: Taking false branch |
|
if (b == NULL) return NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:281:10: note: Assuming the condition is false |
|
while (NULL == (b->data = (unsigned char*) bstr__alloc(b->mlen = i))) { |
|
^ |
|
/usr/lib/llvm-11/lib/clang/11.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL' |
|
# define NULL ((void*)0) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:281:3: note: Loop condition is false. Execution continues on line 290 |
|
while (NULL == (b->data = (unsigned char*) bstr__alloc(b->mlen = i))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:301:10: note: Returned allocated memory |
|
return bfromcstrrangealloc(mlen, mlen, str); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3139:23: note: Returned allocated memory |
|
if (NULL == (buff = bfromcstralloc(n + 2, ""))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3139:3: note: Taking false branch |
|
if (NULL == (buff = bfromcstralloc(n + 2, ""))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3144:3: note: Loop condition is true. Entering loop body |
|
for (;;) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3152:9: note: Assuming 'n' is <= field 'slen' |
|
if (buff->slen < n) break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3152:5: note: Taking false branch |
|
if (buff->slen < n) break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3154:9: note: Assuming 'r' is > 'n' |
|
if (r > n) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3154:5: note: Taking true branch |
|
if (r > n) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3159:5: note: Taking true branch |
|
if (BSTR_OK != balloc(buff, n + 2)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.c:3161:7: note: Potential leak of memory pointed to by 'buff' |
|
return NULL; |
|
^ |
|
2853 warnings generated. |
|
Suppressed 2831 warnings (2829 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/bstr/buniutil.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/buniutil.c:238:46: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
} else if (bom && (cpUcs2) 0xFEFF == *bom) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/buniutil.c:240:4: note: end of the original |
|
} else if (utf16[i] == (cpUcs2) 0xFFFE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/buniutil.c:248:10: note: clone 1 starts here |
|
} else { |
|
^ |
|
1497 warnings generated. |
|
Suppressed 1496 warnings (1494 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/bstr/utf8util.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/utf8util.c:64:5: warning: Value stored to 'ret' is never read [clang-analyzer-deadcode.DeadStores] |
|
ret = -__LINE__; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/utf8util.c:64:5: note: Value stored to 'ret' is never read |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/utf8util.c:159:3: warning: Value stored to 'ofs' is never read [clang-analyzer-deadcode.DeadStores] |
|
ofs = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/utf8util.c:159:3: note: Value stored to 'ofs' is never read |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/utf8util.c:243:15: warning: integer literal has suffix 'lu', which is not uppercase [cert-dcl16-c] |
|
v = (c << 12lu) - (0x0E0 << 12u); |
|
^ ~~ |
|
LU |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/utf8util.c:251:15: warning: integer literal has suffix 'lu', which is not uppercase [cert-dcl16-c] |
|
v = (c << 18lu) - (0x0F0 << 18u); |
|
^ ~~ |
|
LU |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/utf8util.c:255:16: warning: integer literal has suffix 'lu', which is not uppercase [cert-dcl16-c] |
|
v += (c << 12lu) + (d << 6u) + e; |
|
^ ~~ |
|
LU |
|
517 warnings generated. |
|
Suppressed 512 warnings (510 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/directoryd/directoryd.cpp |
|
61722 warnings generated. |
|
Suppressed 61726 warnings (61722 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/directoryd/GatewayDirectorydClient.cpp |
|
/workspaces/magma/lte/gateway/c/oai/lib/directoryd/GatewayDirectorydClient.cpp:35:25: warning: using decl 'Map' is unused [misc-unused-using-decls] |
|
using google::protobuf::Map; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/directoryd/GatewayDirectorydClient.cpp:35:25: note: remove the using |
|
using google::protobuf::Map; |
|
~~~~~~~~~~~~~~~~~~~~~~~~^~~~ |
|
/workspaces/magma/lte/gateway/c/oai/lib/directoryd/GatewayDirectorydClient.cpp:36:13: warning: using decl 'Channel' is unused [misc-unused-using-decls] |
|
using grpc::Channel; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/directoryd/GatewayDirectorydClient.cpp:36:13: note: remove the using |
|
using grpc::Channel; |
|
~~~~~~~~~~~~^~~~~~~~ |
|
/workspaces/magma/lte/gateway/c/oai/lib/directoryd/GatewayDirectorydClient.cpp:37:13: warning: using decl 'ClientContext' is unused [misc-unused-using-decls] |
|
using grpc::ClientContext; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/directoryd/GatewayDirectorydClient.cpp:37:13: note: remove the using |
|
using grpc::ClientContext; |
|
~~~~~~~~~~~~^~~~~~~~~~~~~~ |
|
62916 warnings generated. |
|
Suppressed 62917 warnings (62912 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/directoryd/orc8r/protos/common.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/directoryd/orc8r/protos/common.pb.cc:763:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/directoryd/orc8r/protos/common.pb.cc:157:13: warning: initialization of 'dynamic_init_dummy_orc8r_2fprotos_2fcommon_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_orc8r_2fprotos_2fcommon_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_orc8r_2fprotos_2fcommon_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
58892 warnings generated. |
|
Suppressed 58894 warnings (58890 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/mconfig/mconfigs.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/mconfig/mconfigs.pb.cc:10636:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/mconfig/mconfigs.pb.cc:1205:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fmconfig_2fmconfigs_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/mconfig/mconfigs.pb.cc:4464:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(9, this->_internal_allowed_gre_peers(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/mconfig/mconfigs.pb.cc:7622:72: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(25, this->_internal_apn_correction_map_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/mconfig/mconfigs.pb.cc:7670:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(32, this->_internal_restricted_plmns(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/mconfig/mconfigs.pb.cc:7727:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(35, this->_internal_restricted_imeis(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/mconfig/mconfigs.pb.cc:8231:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_mapping(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/common/lte/protos/mconfig/mconfigs.pb.cc:10480:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_records(i), target, stream); |
|
^ |
|
61888 warnings generated. |
|
Suppressed 61884 warnings (61879 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/directoryd/orc8r/protos/directoryd.grpc.pb.cc |
|
61523 warnings generated. |
|
Suppressed 61527 warnings (61523 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:675:9: warning: Called function pointer is an uninitialized pointer value [clang-analyzer-core.CallAndMessage] |
|
hashtblP->freefunc(&node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1071:7: note: Assuming 'hashtblP' is non-null |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1071:3: note: Taking false branch |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1103:9: note: Assuming field 'nodes' is non-null |
|
if (!(newtbl.nodes = calloc(size, sizeof(hash_node_t*)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1103:3: note: Taking false branch |
|
if (!(newtbl.nodes = calloc(size, sizeof(hash_node_t*)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1105:15: note: Assuming 'n' is < field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1105:3: note: Loop condition is true. Entering loop body |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1106:5: note: Loop condition is true. Entering loop body |
|
for (node = hashtblP->nodes[n]; node; node = next) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1109:7: note: Calling 'hashtable_insert' |
|
hashtable_insert(&newtbl, node->key, node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:665:8: note: 'hashtblP' is non-null |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:665:3: note: Taking false branch |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:672:3: note: Loop condition is true. Entering loop body |
|
while (node) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:673:9: note: Assuming 'keyP' is equal to field 'key' |
|
if (node->key == keyP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:673:5: note: Taking true branch |
|
if (node->key == keyP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:674:11: note: Assuming field 'data' is non-null |
|
if ((node->data) && (node->data != dataP)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:674:11: note: Left side of '&&' is true |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:674:28: note: Assuming 'dataP' is not equal to field 'data' |
|
if ((node->data) && (node->data != dataP)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:674:7: note: Taking true branch |
|
if ((node->data) && (node->data != dataP)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:675:9: note: Called function pointer is an uninitialized pointer value |
|
hashtblP->freefunc(&node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:706:26: warning: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage [clang-analyzer-core.uninitialized.Assign] |
|
hashtblP->num_elements += 1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1071:7: note: Assuming 'hashtblP' is non-null |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1071:3: note: Taking false branch |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1103:9: note: Assuming field 'nodes' is non-null |
|
if (!(newtbl.nodes = calloc(size, sizeof(hash_node_t*)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1103:3: note: Taking false branch |
|
if (!(newtbl.nodes = calloc(size, sizeof(hash_node_t*)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1105:15: note: Assuming 'n' is < field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1105:3: note: Loop condition is true. Entering loop body |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1106:5: note: Loop condition is true. Entering loop body |
|
for (node = hashtblP->nodes[n]; node; node = next) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1109:7: note: Calling 'hashtable_insert' |
|
hashtable_insert(&newtbl, node->key, node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:665:8: note: 'hashtblP' is non-null |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:665:3: note: Taking false branch |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:672:3: note: Loop condition is false. Execution continues on line 694 |
|
while (node) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:694:9: note: Assuming 'node' is non-null |
|
if (!(node = malloc(sizeof(hash_node_t)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:694:3: note: Taking false branch |
|
if (!(node = malloc(sizeof(hash_node_t)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:699:7: note: Assuming the condition is false |
|
if (hashtblP->nodes[hash]) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:699:3: note: Taking false branch |
|
if (hashtblP->nodes[hash]) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:706:26: note: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage |
|
hashtblP->num_elements += 1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:736:9: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
hashtblP->freefunc(&node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1137:3: note: 'newtbl.freefunc' initialized to a null pointer value |
|
hash_table_ts_t newtbl = {.mutex = PTHREAD_MUTEX_INITIALIZER, 0}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1142:7: note: Assuming 'hashtblP' is non-null |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1142:3: note: Taking false branch |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1174:9: note: Assuming field 'nodes' is non-null |
|
if (!(newtbl.nodes = calloc(size, sizeof(hash_node_t*)))) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1174:3: note: Taking false branch |
|
if (!(newtbl.nodes = calloc(size, sizeof(hash_node_t*)))) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1177:9: note: Assuming field 'lock_nodes' is non-null |
|
if (!(newtbl.lock_nodes = calloc(size, sizeof(pthread_mutex_t)))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1177:3: note: Taking false branch |
|
if (!(newtbl.lock_nodes = calloc(size, sizeof(pthread_mutex_t)))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1181:15: note: Assuming 'n' is >= field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1181:3: note: Loop condition is false. Execution continues on line 1185 |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1186:15: note: Assuming 'n' is < field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1186:3: note: Loop condition is true. Entering loop body |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1187:5: note: Loop condition is true. Entering loop body |
|
for (node = hashtblP->nodes[n]; node; node = next) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:1190:7: note: Calling 'hashtable_ts_insert' |
|
hashtable_ts_insert(&newtbl, node->key, node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:725:8: note: 'hashtblP' is non-null |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:725:3: note: Taking false branch |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:733:3: note: Loop condition is true. Entering loop body |
|
while (node) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:734:9: note: Assuming 'keyP' is equal to field 'key' |
|
if (node->key == keyP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:734:5: note: Taking true branch |
|
if (node->key == keyP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:735:11: note: Assuming field 'data' is non-null |
|
if ((node->data) && (node->data != dataP)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:735:11: note: Left side of '&&' is true |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:735:28: note: Assuming 'dataP' is not equal to field 'data' |
|
if ((node->data) && (node->data != dataP)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:735:7: note: Taking true branch |
|
if ((node->data) && (node->data != dataP)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable.c:736:9: note: Called function pointer is null (null dereference) |
|
hashtblP->freefunc(&node->data); |
|
^ |
|
4597 warnings generated. |
|
Suppressed 4594 warnings (4592 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:542:9: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
hashtblP->freedatafunc(&node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1148:3: note: 'newtbl.freedatafunc' initialized to a null pointer value |
|
obj_hash_table_t newtbl = {.mutex = PTHREAD_MUTEX_INITIALIZER, 0}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1153:7: note: Assuming 'hashtblP' is not equal to NULL |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1153:3: note: Taking false branch |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1185:9: note: Assuming field 'nodes' is non-null |
|
if (!(newtbl.nodes = calloc(size, sizeof(obj_hash_node_t*)))) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1185:3: note: Taking false branch |
|
if (!(newtbl.nodes = calloc(size, sizeof(obj_hash_node_t*)))) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1188:9: note: Assuming field 'lock_nodes' is non-null |
|
if (!(newtbl.lock_nodes = calloc(size, sizeof(pthread_mutex_t)))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1188:3: note: Taking false branch |
|
if (!(newtbl.lock_nodes = calloc(size, sizeof(pthread_mutex_t)))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1192:15: note: Assuming 'n' is >= field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1192:3: note: Loop condition is false. Execution continues on line 1196 |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1197:15: note: Assuming 'n' is < field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1197:3: note: Loop condition is true. Entering loop body |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1198:5: note: Loop condition is true. Entering loop body |
|
for (node = hashtblP->nodes[n]; node; node = next) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1201:7: note: Calling 'obj_hashtable_insert' |
|
obj_hashtable_insert(&newtbl, node->key, node->key_size, node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:527:7: note: 'hashtblP' is not equal to NULL |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:527:3: note: Taking false branch |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:531:7: note: 'keyP' is not equal to NULL |
|
if (keyP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:531:3: note: Taking false branch |
|
if (keyP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:539:3: note: Loop condition is true. Entering loop body |
|
while (node) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:540:9: note: Assuming 'keyP' is equal to field 'key' |
|
if (node->key == keyP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:540:5: note: Taking true branch |
|
if (node->key == keyP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:541:11: note: Assuming field 'data' is non-null |
|
if (node->data) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:541:7: note: Taking true branch |
|
if (node->data) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:542:9: note: Called function pointer is null (null dereference) |
|
hashtblP->freedatafunc(&node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1018:12: warning: Potential leak of memory pointed to by 'keysP' [clang-analyzer-unix.Malloc] |
|
return HASH_TABLE_OK; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1001:7: note: Assuming 'hashtblP' is not equal to NULL |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1001:3: note: Taking false branch |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1007:12: note: Memory is allocated |
|
keysP = calloc(hashtblP->num_elements, sizeof(void*)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1009:7: note: Assuming 'keysP' is non-null |
|
if (keysP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1009:3: note: Taking true branch |
|
if (keysP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1010:17: note: Assuming 'n' is >= field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1010:5: note: Loop condition is false. Execution continues on line 1018 |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1018:12: note: Potential leak of memory pointed to by 'keysP' |
|
return HASH_TABLE_OK; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1053:12: warning: Potential leak of memory pointed to by 'keysP' [clang-analyzer-unix.Malloc] |
|
return HASH_TABLE_OK; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1034:7: note: Assuming 'hashtblP' is not equal to NULL |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1034:3: note: Taking false branch |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1040:12: note: Memory is allocated |
|
keysP = calloc(hashtblP->num_elements, sizeof(void*)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1042:7: note: Assuming 'keysP' is non-null |
|
if (keysP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1042:3: note: Taking true branch |
|
if (keysP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1043:17: note: Assuming 'n' is >= field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1043:5: note: Loop condition is false. Execution continues on line 1053 |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable.c:1053:12: note: Potential leak of memory pointed to by 'keysP' |
|
return HASH_TABLE_OK; |
|
^ |
|
4478 warnings generated. |
|
Suppressed 4475 warnings (4473 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:641:26: warning: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage [clang-analyzer-core.uninitialized.Assign] |
|
hashtblP->num_elements += 1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:897:7: note: Assuming 'hashtblP' is non-null |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:897:3: note: Taking false branch |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:929:9: note: Assuming field 'nodes' is non-null |
|
if (!(newtbl.nodes = calloc(size, sizeof(hash_node_uint64_t*)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:929:3: note: Taking false branch |
|
if (!(newtbl.nodes = calloc(size, sizeof(hash_node_uint64_t*)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:931:15: note: Assuming 'n' is < field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:931:3: note: Loop condition is true. Entering loop body |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:932:5: note: Loop condition is true. Entering loop body |
|
for (node = hashtblP->nodes[n]; node; node = next) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:935:7: note: Calling 'hashtable_uint64_insert' |
|
hashtable_uint64_insert(&newtbl, node->key, node->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:601:8: note: 'hashtblP' is non-null |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:601:3: note: Taking false branch |
|
if (!hashtblP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:608:3: note: Loop condition is false. Execution continues on line 629 |
|
while (node) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:629:9: note: Assuming 'node' is non-null |
|
if (!(node = malloc(sizeof(hash_node_uint64_t)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:629:3: note: Taking false branch |
|
if (!(node = malloc(sizeof(hash_node_uint64_t)))) return -1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:634:7: note: Assuming the condition is false |
|
if (hashtblP->nodes[hash]) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:634:3: note: Taking false branch |
|
if (hashtblP->nodes[hash]) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/hashtable_uint64.c:641:26: note: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage |
|
hashtblP->num_elements += 1; |
|
^ |
|
3941 warnings generated. |
|
Suppressed 3940 warnings (3938 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c:998:12: warning: Potential leak of memory pointed to by 'keysP' [clang-analyzer-unix.Malloc] |
|
return HASH_TABLE_OK; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c:981:7: note: Assuming 'hashtblP' is not equal to NULL |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c:981:3: note: Taking false branch |
|
if (hashtblP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c:987:12: note: Memory is allocated |
|
keysP = calloc(hashtblP->num_elements, sizeof(void*)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c:989:7: note: Assuming 'keysP' is non-null |
|
if (keysP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c:989:3: note: Taking true branch |
|
if (keysP) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c:990:17: note: Assuming 'n' is >= field 'size' |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c:990:5: note: Loop condition is false. Execution continues on line 998 |
|
for (n = 0; n < hashtblP->size; ++n) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/hashtable/obj_hashtable_uint64.c:998:12: note: Potential leak of memory pointed to by 'keysP' |
|
return HASH_TABLE_OK; |
|
^ |
|
5088 warnings generated. |
|
Suppressed 5087 warnings (5085 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/directoryd/orc8r/protos/directoryd.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/directoryd/orc8r/protos/directoryd.pb.cc:4195:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/directoryd/orc8r/protos/directoryd.pb.cc:662:13: warning: initialization of 'dynamic_init_dummy_orc8r_2fprotos_2fdirectoryd_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_orc8r_2fprotos_2fdirectoryd_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_orc8r_2fprotos_2fdirectoryd_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/directoryd/orc8r/protos/directoryd.pb.cc:4290:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_records(i), target, stream); |
|
^ |
|
59238 warnings generated. |
|
Suppressed 59239 warnings (59235 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/itti/intertask_interface.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/itti/intertask_interface.c:31:9: warning: declaration uses identifier '_GNU_SOURCE', which is a reserved identifier [bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp] |
|
#define _GNU_SOURCE |
|
^~~~~~~~~~~ |
|
GNU_SOURCE |
|
12676 warnings generated. |
|
Suppressed 12673 warnings (12650 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/itti/signals.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/itti/signals.c:98:25: warning: use 'fopen' mode 'e' to set O_CLOEXEC [android-cloexec-fopen] |
|
statusf = fopen(path, "r"); |
|
^~~ |
|
"re" |
|
/workspaces/magma/lte/gateway/c/oai/lib/itti/signals.c:106:19: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
num_threads = atoi(p); |
|
^ |
|
10520 warnings generated. |
|
Suppressed 10518 warnings (10495 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/itti/timer.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/itti/timer.c:76:33: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
if (((vAR)->tIMERfIELD == tIMERvALUE)) break; \ |
|
^ |
|
( ) |
|
10486 warnings generated. |
|
Suppressed 10485 warnings (10462 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:47:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[0] = (tai->plmn.mcc_digit2 << 4) | (tai->plmn.mcc_digit1 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:48:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[1] = (tai->plmn.mnc_digit3 << 4) | (tai->plmn.mcc_digit3 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:49:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[2] = (tai->plmn.mnc_digit2 << 4) | (tai->plmn.mnc_digit1 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:50:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[3] = tai->tac >> 8; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:60:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[0] = (lai->mccdigit2 << 4) | (lai->mccdigit1 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:61:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[1] = (lai->mncdigit3 << 4) | (lai->mccdigit3 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:62:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[2] = (lai->mncdigit2 << 4) | (lai->mncdigit1 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:63:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[3] = lai->lac >> 8; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:70:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[0] = (ecgi->plmn.mcc_digit2 << 4) | (ecgi->plmn.mcc_digit1 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:71:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[1] = (ecgi->plmn.mnc_digit3 << 4) | (ecgi->plmn.mcc_digit3 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:72:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[2] = (ecgi->plmn.mnc_digit2 << 4) | (ecgi->plmn.mnc_digit1 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:73:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[3] = ecgi->cell_identity.enb_id >> 16 & 0x0F; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:74:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[4] = ecgi->cell_identity.enb_id >> 8; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:83:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[0] = (mscm2->revisionlevel << 5) | (mscm2->esind << 4) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:85:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[1] = (mscm2->pscapability << 6) | (mscm2->ssscreenindicator << 4) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:88:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[2] = (mscm2->cm3 << 7) | (mscm2->lcsvacap << 5) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:96:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[0] = (plmn->mcc_digit2 << 4) | (plmn->mcc_digit1 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:97:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[1] = (plmn->mnc_digit3 << 4) | (plmn->mcc_digit3 & 0x0F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/message_utils/ie_to_bytes.c:98:17: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
byte_arr[2] = (plmn->mnc_digit2 << 4) | (plmn->mnc_digit1 & 0x0F); |
|
^ |
|
2748 warnings generated. |
|
Suppressed 2729 warnings (2727 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/message_utils/bytes_to_ie.c |
|
10515 warnings generated. |
|
Suppressed 10515 warnings (10492 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/message_utils/service303_message_utils.c |
|
10473 warnings generated. |
|
Suppressed 10473 warnings (10450 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/pcef/PCEFClient.cpp |
|
66940 warnings generated. |
|
Suppressed 66944 warnings (66938 in non-user code, 4 NOLINT, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:127:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(imsi.c_str(), &message_p->ittiMsgHeader.imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:214:12: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
return (digit + '0'); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:269:12: warning: narrowing conversion from constant value 130 (0x00000082) of type 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[0] = 130; // TAI and ECGI - defined in 29.061 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:272:12: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[1] = ((saved_req->uli.s.tai.plmn.mcc_digit2 & 0xf) << 4) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:274:12: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[2] = ((saved_req->uli.s.tai.plmn.mnc_digit3 & 0xf) << 4) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:276:12: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[3] = ((saved_req->uli.s.tai.plmn.mnc_digit2 & 0xf) << 4) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:278:12: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[4] = (saved_req->uli.s.tai.tac >> 8) & 0xff; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:279:12: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[5] = saved_req->uli.s.tai.tac & 0xff; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:282:12: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[6] = ((saved_req->uli.s.ecgi.plmn.mcc_digit2 & 0xf) << 4) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:284:12: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[7] = ((saved_req->uli.s.ecgi.plmn.mnc_digit3 & 0xf) << 4) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:286:12: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[8] = ((saved_req->uli.s.ecgi.plmn.mnc_digit2 & 0xf) << 4) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:288:13: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[9] = (saved_req->uli.s.ecgi.cell_identity.enb_id >> 16) & 0xf; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:289:13: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[10] = (saved_req->uli.s.ecgi.cell_identity.enb_id >> 8) & 0xff; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:290:13: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[11] = saved_req->uli.s.ecgi.cell_identity.enb_id & 0xff; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:291:13: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
uli[12] = saved_req->uli.s.ecgi.cell_identity.cell_id & 0xff; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:308:21: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
msisdn[j] = (saved_req->msisdn.digit[i] & 0xf) + '0'; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/pcef/pcef_handlers.cpp:309:21: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
msisdn[j + 1] = ((saved_req->msisdn.digit[i] >> 4) & 0xf) + '0'; |
|
^ |
|
74149 warnings generated. |
|
Suppressed 74136 warnings (74130 in non-user code, 4 NOLINT, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/policydb.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/policydb.pb.cc:5668:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/policydb.pb.cc:657:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fpolicydb_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fpolicydb_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fpolicydb_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/policydb.pb.cc:1544:57: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(7, this->_internal_flow_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/policydb.pb.cc:4961:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_rules_per_apn(i), target, stream); |
|
^ |
|
61784 warnings generated. |
|
Suppressed 61784 warnings (61779 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.grpc.pb.cc |
|
65471 warnings generated. |
|
Suppressed 65475 warnings (65470 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/pcef/orc8r/protos/mconfig/mconfigs.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/orc8r/protos/mconfig/mconfigs.pb.cc:2872:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/orc8r/protos/mconfig/mconfigs.pb.cc:448:13: warning: initialization of 'dynamic_init_dummy_orc8r_2fprotos_2fmconfig_2fmconfigs_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_orc8r_2fprotos_2fmconfig_2fmconfigs_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_orc8r_2fprotos_2fmconfig_2fmconfigs_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/orc8r/protos/mconfig/mconfigs.pb.cc:1161:54: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(7, this->_internal_images(i), target, stream); |
|
^ |
|
61399 warnings generated. |
|
Suppressed 61400 warnings (61395 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityServiceClient.cpp |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityServiceClient.cpp:38:13: warning: using decl 'Channel' is unused [misc-unused-using-decls] |
|
using grpc::Channel; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityServiceClient.cpp:38:13: note: remove the using |
|
using grpc::Channel; |
|
~~~~~~~~~~~~^~~~~~~~ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityServiceClient.cpp:39:13: warning: using decl 'ChannelCredentials' is unused [misc-unused-using-decls] |
|
using grpc::ChannelCredentials; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityServiceClient.cpp:39:13: note: remove the using |
|
using grpc::ChannelCredentials; |
|
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityServiceClient.cpp:41:13: warning: using decl 'InsecureChannelCredentials' is unused [misc-unused-using-decls] |
|
using grpc::InsecureChannelCredentials; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityServiceClient.cpp:41:13: note: remove the using |
|
using grpc::InsecureChannelCredentials; |
|
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
66144 warnings generated. |
|
Suppressed 66145 warnings (66140 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:35:13: warning: using decl 'Channel' is unused [misc-unused-using-decls] |
|
using grpc::Channel; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:35:13: note: remove the using |
|
using grpc::Channel; |
|
~~~~~~~~~~~~^~~~~~~~ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:36:13: warning: using decl 'ChannelCredentials' is unused [misc-unused-using-decls] |
|
using grpc::ChannelCredentials; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:36:13: note: remove the using |
|
using grpc::ChannelCredentials; |
|
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:37:13: warning: using decl 'CreateChannel' is unused [misc-unused-using-decls] |
|
using grpc::CreateChannel; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:37:13: note: remove the using |
|
using grpc::CreateChannel; |
|
~~~~~~~~~~~~^~~~~~~~~~~~~~ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:38:13: warning: using decl 'InsecureChannelCredentials' is unused [misc-unused-using-decls] |
|
using grpc::InsecureChannelCredentials; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:38:13: note: remove the using |
|
using grpc::InsecureChannelCredentials; |
|
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:41:19: warning: using decl 'IPAddress' is unused [misc-unused-using-decls] |
|
using magma::lte::IPAddress; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:41:19: note: remove the using |
|
using magma::lte::IPAddress; |
|
~~~~~~~~~~~~~~~~~~^~~~~~~~~~ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:84:20: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
int vlan = atoi(ip_msg.vlan().c_str()); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:142:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(imsi, &message_p->ittiMsgHeader.imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:198:20: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
int vlan = atoi(ip_msg.vlan().c_str()); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:257:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(imsi, &message_p->ittiMsgHeader.imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:298:20: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
int vlan = atoi(ip_msg.vlan().c_str()); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/mobility_client/MobilityClientAPI.cpp:357:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(imsi, &message_p->ittiMsgHeader.imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
72409 warnings generated. |
|
Suppressed 72402 warnings (72398 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:3834:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:506:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fmobilityd_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fmobilityd_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fmobilityd_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:953:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_ip_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:1726:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_ip_block_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:1870:41: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&sid_)) + sizeof(ip_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:2106:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SubscriberIPTableEntry::ip_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:2228:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_entries(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:2716:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_ip_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:2860:41: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&sid_)) + sizeof(ip_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:3096:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(ReleaseIPRequest::ip_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:3228:57: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_ip_blocks(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:3443:57: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_ip_blocks(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.pb.cc:3929:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_gw_list(i), target, stream); |
|
^ |
|
61546 warnings generated. |
|
Suppressed 61537 warnings (61533 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc:4743:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc:566:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fsubscriberdb_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fsubscriberdb_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fsubscriberdb_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc:1118:52: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_sids(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc:3618:58: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_apn_config(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc:3863:41: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&sid_)) + sizeof(non_3gpp_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc:4219:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SubscriberData::non_3gpp_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc:4279:42: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&data_)) + sizeof(mask_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc:4483:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SubscriberUpdate::mask_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.pb.cc:4855:59: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_subscribers(i), target, stream); |
|
^ |
|
61340 warnings generated. |
|
Suppressed 61335 warnings (61331 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/orc8r/protos/common.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/orc8r/protos/common.pb.cc:763:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/orc8r/protos/common.pb.cc:157:13: warning: initialization of 'dynamic_init_dummy_orc8r_2fprotos_2fcommon_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_orc8r_2fprotos_2fcommon_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_orc8r_2fprotos_2fcommon_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
61108 warnings generated. |
|
Suppressed 61110 warnings (61106 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/mobilityd.grpc.pb.cc |
|
63930 warnings generated. |
|
Suppressed 63934 warnings (63930 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/mobility_client/lte/protos/subscriberdb.grpc.pb.cc |
|
63614 warnings generated. |
|
Suppressed 63618 warnings (63614 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/S6aClient.cpp |
|
/workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/S6aClient.cpp:49:19: warning: initialization of 'hss_relay_enabled' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static const bool hss_relay_enabled = read_hss_relay_enabled(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/S6aClient.cpp:45:13: note: possibly throwing function declared here |
|
static bool read_hss_relay_enabled(void); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/S6aClient.cpp:51:19: warning: initialization of 'cloud_subscriberdb_enabled' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static const bool cloud_subscriberdb_enabled = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/S6aClient.cpp:47:13: note: possibly throwing function declared here |
|
static bool read_mme_cloud_subscriberdb_enabled(void); |
|
^ |
|
74061 warnings generated. |
|
Suppressed 74063 warnings (74056 in non-user code, 4 NOLINT, 3 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:25866:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:2784:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fsession_5fmanager_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fsession_5fmanager_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fsession_5fmanager_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:4037:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_records(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:4186:52: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&common_context_)) + sizeof(rat_specific_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:4390:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(LocalCreateSessionRequest::rat_specific_context_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:5884:52: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&common_context_)) + sizeof(rat_specific_notification_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:6088:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SetSmNotificationContext::rat_specific_notification_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:9098:55: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&revalidation_time_)) + sizeof(qos_info_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:9317:64: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_rules_to_install(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:9325:72: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(7, this->_internal_dynamic_rules_to_install(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:9350:73: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(10, this->_internal_usage_monitoring_credits(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:9532:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(PolicyReAuthRequest::qos_info_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:10264:60: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_static_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:10272:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_dynamic_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:10528:56: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_rule_set(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:10739:68: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_rules_per_subscriber(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:11302:43: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&total_)) + sizeof(rx_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:11536:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(GrantedUnits::rx_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:15422:71: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(9, this->_internal_static_rules_to_install(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:15430:73: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(10, this->_internal_dynamic_rules_to_install(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:16300:53: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&access_timezone_)) + sizeof(rat_specific_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:16596:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(CreateSessionRequest::rat_specific_context_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:16672:46: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&tgpp_ctx_)) + sizeof(revalidation_time_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:16848:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_credits(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:16856:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_usage_monitors(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:16864:60: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(7, this->_internal_static_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:16872:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(8, this->_internal_dynamic_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:17069:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(CreateSessionResponse::revalidation_time_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:17141:53: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&activation_time_)) + sizeof(deactivation_time_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:17377:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(StaticRuleInstall::deactivation_time_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:17459:49: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&policy_rule_)) + sizeof(deactivation_time_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:17693:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(DynamicRuleInstall::deactivation_time_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:17830:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_updates(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:17838:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_usage_monitors(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:18062:57: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_responses(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:18070:71: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_usage_monitor_responses(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:18745:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_credit_usages(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:18753:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_monitor_usages(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:20006:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_identity_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:20943:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(12, this->_internal_ladn_service_area(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:21376:52: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&common_context_)) + sizeof(rat_specific_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:21580:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SetSMSessionContext::rat_specific_context_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:22260:68: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_authorized_qos_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:22523:52: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&common_context_)) + sizeof(rat_specific_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:22727:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SetSMSessionContextAccess::rat_specific_context_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:23700:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_ip_resource_schema(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/pcef/lte/protos/session_manager.pb.cc:25763:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_upf_session_state(i), target, stream); |
|
^ |
|
63038 warnings generated. |
|
Suppressed 62995 warnings (62990 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/s6a_client_api.cpp |
|
/workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/s6a_client_api.cpp:103:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64((char*) imsi.c_str(), &message_p->ittiMsgHeader.imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/s6a_client_api.cpp:162:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64((char*) imsi.c_str(), &message_p->ittiMsgHeader.imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
72293 warnings generated. |
|
Suppressed 72295 warnings (72290 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/itti_msg_to_proto_msg.cpp |
|
71747 warnings generated. |
|
Suppressed 71751 warnings (71746 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/s6a_proxy/proto_msg_to_itti_msg.cpp |
|
71747 warnings generated. |
|
Suppressed 71751 warnings (71746 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/feg/protos/s6a_proxy.grpc.pb.cc |
|
63610 warnings generated. |
|
Suppressed 63614 warnings (63609 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/feg/protos/s6a_proxy.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/feg/protos/s6a_proxy.pb.cc:5221:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/feg/protos/s6a_proxy.pb.cc:654:13: warning: initialization of 'dynamic_init_dummy_feg_2fprotos_2fs6a_5fproxy_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_feg_2fprotos_2fs6a_5fproxy_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_feg_2fprotos_2fs6a_5fproxy_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/feg/protos/s6a_proxy.pb.cc:2279:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_eutran_vectors(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/feg/protos/s6a_proxy.pb.cc:2287:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_utran_vectors(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/feg/protos/s6a_proxy.pb.cc:2295:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_geran_vectors(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/feg/protos/s6a_proxy.pb.cc:3952:51: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_apn(i), target, stream); |
|
^ |
|
61314 warnings generated. |
|
Suppressed 61312 warnings (61307 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/secu/kdf.c |
|
2965 warnings generated. |
|
Suppressed 2965 warnings (2963 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/secu/key_nas_deriver.c |
|
1165 warnings generated. |
|
Suppressed 1165 warnings (1163 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/secu/key_nas_encryption.c |
|
2 warnings generated. |
|
Suppressed 2 warnings (2 with check filters). |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eea1.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eea1.c:43:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
n = (stream_cipher->blength + 31) / 32; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eea1.c:106:18: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
ceil_index = (stream_cipher->blength + 7) >> 3; |
|
^ |
|
6199 warnings generated. |
|
Suppressed 6197 warnings (6195 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eea2.c |
|
6233 warnings generated. |
|
Suppressed 6233 warnings (6231 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eia1.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eia1.c:60:10: warning: function 'MUL64xPOW' is within a recursive call chain [misc-no-recursion] |
|
uint64_t MUL64xPOW(uint64_t V, uint32_t i, uint64_t c) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eia1.c:60:10: note: example recursive call chain, starting from function 'MUL64xPOW' |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eia1.c:64:19: note: Frame #1: function 'MUL64xPOW' calls function 'MUL64xPOW' here: |
|
return MUL64x(MUL64xPOW(V, i - 1, c), c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eia1.c:64:19: note: ... which was the starting point of the recursive call chain; there may be other cycles |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eia1.c:187:7: warning: narrowing conversion from 'double' to 'int' [bugprone-narrowing-conversions] |
|
D = ceil(stream_cipher->blength / 64.0) + 1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eia1.c:206:14: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
rem_bits = stream_cipher->blength % 64; |
|
^ |
|
4792 warnings generated. |
|
Suppressed 4789 warnings (4787 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/secu/nas_stream_eia2.c |
|
6248 warnings generated. |
|
Suppressed 6248 warnings (6246 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/secu/rijndael.c |
|
728 warnings generated. |
|
Suppressed 728 warnings (726 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/secu/snow3g.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/snow3g.c:62:16: warning: function 'MULxPOW' is within a recursive call chain [misc-no-recursion] |
|
static uint8_t MULxPOW(uint8_t V, uint8_t i, uint8_t c) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/snow3g.c:62:16: note: example recursive call chain, starting from function 'MULxPOW' |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/snow3g.c:66:17: note: Frame #1: function 'MULxPOW' calls function 'MULxPOW' here: |
|
return MULx(MULxPOW(V, i - 1, c), c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/secu/snow3g.c:66:17: note: ... which was the starting point of the recursive call chain; there may be other cycles |
|
729 warnings generated. |
|
Suppressed 728 warnings (726 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/sgs_client/csfb_client_api.cpp |
|
72119 warnings generated. |
|
Suppressed 72123 warnings (72119 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/sgs_client/CSFBClient.cpp |
|
73271 warnings generated. |
|
Suppressed 73275 warnings (73270 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/sgs_client/itti_msg_to_proto_msg.cpp |
|
77136 warnings generated. |
|
Suppressed 77140 warnings (77135 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/lte/protos/mconfig/mconfigs.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/lte/protos/mconfig/mconfigs.pb.cc:10636:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/lte/protos/mconfig/mconfigs.pb.cc:1205:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fmconfig_2fmconfigs_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/lte/protos/mconfig/mconfigs.pb.cc:4464:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(9, this->_internal_allowed_gre_peers(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/lte/protos/mconfig/mconfigs.pb.cc:7622:72: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(25, this->_internal_apn_correction_map_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/lte/protos/mconfig/mconfigs.pb.cc:7670:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(32, this->_internal_restricted_plmns(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/lte/protos/mconfig/mconfigs.pb.cc:7727:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(35, this->_internal_restricted_imeis(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/lte/protos/mconfig/mconfigs.pb.cc:8231:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_mapping(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s6a_proxy/lte/protos/mconfig/mconfigs.pb.cc:10480:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_records(i), target, stream); |
|
^ |
|
61746 warnings generated. |
|
Suppressed 61742 warnings (61736 in non-user code, 4 NOLINT, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/feg/protos/csfb.grpc.pb.cc |
|
63766 warnings generated. |
|
Suppressed 63770 warnings (63766 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/feg/protos/csfb.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/feg/protos/csfb.pb.cc:7331:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/feg/protos/csfb.pb.cc:823:13: warning: initialization of 'dynamic_init_dummy_feg_2fprotos_2fcsfb_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_feg_2fprotos_2fcsfb_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_feg_2fprotos_2fcsfb_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
61493 warnings generated. |
|
Suppressed 61495 warnings (61491 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/s8_proxy/S8Client.cpp |
|
73707 warnings generated. |
|
Suppressed 73711 warnings (73706 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/s8_proxy/s8_client_api.cpp |
|
/workspaces/magma/lte/gateway/c/oai/lib/s8_proxy/s8_client_api.cpp:283:24: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
indication_flag[0] = (msg->indication_flags.daf << DAF_FLAG_BIT_POS) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/s8_proxy/s8_client_api.cpp:292:24: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
indication_flag[1] = (msg->indication_flags.sqci << SQSI_FLAG_BIT_POS) | |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/s8_proxy/s8_client_api.cpp:301:24: warning: narrowing conversion from 'int' to signed type 'char' is implementation-defined [bugprone-narrowing-conversions] |
|
indication_flag[2] = (msg->indication_flags.s6af << S6AF_FLAG_BIT_POS) | |
|
^ |
|
72610 warnings generated. |
|
Suppressed 72611 warnings (72607 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/lte/protos/mconfig/mconfigs.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/lte/protos/mconfig/mconfigs.pb.cc:10636:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/lte/protos/mconfig/mconfigs.pb.cc:1205:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fmconfig_2fmconfigs_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/lte/protos/mconfig/mconfigs.pb.cc:4464:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(9, this->_internal_allowed_gre_peers(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/lte/protos/mconfig/mconfigs.pb.cc:7622:72: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(25, this->_internal_apn_correction_map_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/lte/protos/mconfig/mconfigs.pb.cc:7670:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(32, this->_internal_restricted_plmns(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/lte/protos/mconfig/mconfigs.pb.cc:7727:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(35, this->_internal_restricted_imeis(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/lte/protos/mconfig/mconfigs.pb.cc:8231:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_mapping(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sgs_client/lte/protos/mconfig/mconfigs.pb.cc:10480:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_records(i), target, stream); |
|
^ |
|
61745 warnings generated. |
|
Suppressed 61741 warnings (61736 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/feg/protos/s8_proxy.grpc.pb.cc |
|
64117 warnings generated. |
|
Suppressed 64121 warnings (64117 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/feg/protos/s8_proxy.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/feg/protos/s8_proxy.pb.cc:6568:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/feg/protos/s8_proxy.pb.cc:746:13: warning: initialization of 'dynamic_init_dummy_feg_2fprotos_2fs8_5fproxy_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_feg_2fprotos_2fs8_5fproxy_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_feg_2fprotos_2fs8_5fproxy_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/feg/protos/s8_proxy.pb.cc:2363:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_proto_or_container_id(i), target, stream); |
|
^ |
|
61842 warnings generated. |
|
Suppressed 61843 warnings (61839 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/mconfig/mconfigs.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/mconfig/mconfigs.pb.cc:10636:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/mconfig/mconfigs.pb.cc:1205:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fmconfig_2fmconfigs_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/mconfig/mconfigs.pb.cc:4464:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(9, this->_internal_allowed_gre_peers(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/mconfig/mconfigs.pb.cc:7622:72: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(25, this->_internal_apn_correction_map_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/mconfig/mconfigs.pb.cc:7670:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(32, this->_internal_restricted_plmns(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/mconfig/mconfigs.pb.cc:7727:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(35, this->_internal_restricted_imeis(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/mconfig/mconfigs.pb.cc:8231:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_mapping(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/mconfig/mconfigs.pb.cc:10480:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_records(i), target, stream); |
|
^ |
|
61745 warnings generated. |
|
Suppressed 61741 warnings (61736 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/sgw_state.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/sgw_state.pb.cc:922:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/sgw_state.pb.cc:165:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fsgw_5fstate_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fsgw_5fstate_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fsgw_5fstate_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/sgw_state.pb.cc:819:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_sgw_bearer_context(i), target, stream); |
|
^ |
|
61586 warnings generated. |
|
Suppressed 61587 warnings (61583 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:6570:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:711:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fspgw_5fstate_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fspgw_5fstate_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fspgw_5fstate_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:1100:67: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(22, this->_internal_pending_procedures(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:1480:67: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_pending_eps_bearers(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:2566:78: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(20, this->_internal_bearer_contexts_to_be_created(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:3630:64: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(15, this->_internal_eps_bearer_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:4913:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_create_new_tft(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:4921:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_add_packet_filter(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:4929:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_replace_packet_filter(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:5886:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_s11_bearer_context(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:6018:60: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&sgw_eps_bearer_context_)) + sizeof(pgw_eps_bearer_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/spgw_state.pb.cc:6222:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(S11BearerContext::pgw_eps_bearer_context_) |
|
^ |
|
61557 warnings generated. |
|
Suppressed 61549 warnings (61536 in non-user code, 4 NOLINT, 9 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/common_types.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/common_types.pb.cc:1773:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/common_types.pb.cc:251:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/common_types.pb.cc:1904:59: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_apn_configs(i), target, stream); |
|
^ |
|
61139 warnings generated. |
|
Suppressed 61140 warnings (61136 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/sms_orc8r_client/sms_orc8r_client_api.cpp |
|
71831 warnings generated. |
|
Suppressed 71835 warnings (71831 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/std_3gpp_types.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/std_3gpp_types.pb.cc:2422:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/std_3gpp_types.pb.cc:350:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fstd_5f3gpp_5ftypes_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fstd_5f3gpp_5ftypes_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fstd_5f3gpp_5ftypes_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/std_3gpp_types.pb.cc:476:58: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_parameters(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/std_3gpp_types.pb.cc:1018:60: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_pco_protocol(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/std_3gpp_types.pb.cc:2639:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_ipv4_remote_addresses(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/s8_proxy/lte/protos/oai/std_3gpp_types.pb.cc:2647:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_ipv6_remote_addresses(i), target, stream); |
|
^ |
|
61181 warnings generated. |
|
Suppressed 61179 warnings (61175 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/sms_orc8r_client/SMSOrc8rClient.cpp |
|
72978 warnings generated. |
|
Suppressed 72982 warnings (72977 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/sms_orc8r_client/itti_msg_to_proto_msg.cpp |
|
76843 warnings generated. |
|
Suppressed 76847 warnings (76842 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/sms_orc8r.grpc.pb.cc |
|
63462 warnings generated. |
|
Suppressed 63466 warnings (63462 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/sms_orc8r.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/sms_orc8r.pb.cc:1478:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/sms_orc8r.pb.cc:238:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fsms_5forc8r_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fsms_5forc8r_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fsms_5forc8r_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/sms_orc8r.pb.cc:1573:56: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_messages(i), target, stream); |
|
^ |
|
61198 warnings generated. |
|
Suppressed 61199 warnings (61195 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/event_client/EventClientAPI.cpp |
|
63584 warnings generated. |
|
Suppressed 63588 warnings (63584 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/n11/SmfServiceClient.cpp |
|
66564 warnings generated. |
|
Suppressed 66568 warnings (66563 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc:4743:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc:566:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fsubscriberdb_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fsubscriberdb_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fsubscriberdb_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc:1118:52: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_sids(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc:3618:58: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_apn_config(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc:3863:41: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&sid_)) + sizeof(non_3gpp_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc:4219:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SubscriberData::non_3gpp_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc:4279:42: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&data_)) + sizeof(mask_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc:4483:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SubscriberUpdate::mask_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/subscriberdb.pb.cc:4855:59: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_subscribers(i), target, stream); |
|
^ |
|
61340 warnings generated. |
|
Suppressed 61335 warnings (61331 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/mconfig/mconfigs.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/mconfig/mconfigs.pb.cc:10636:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/mconfig/mconfigs.pb.cc:1205:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fmconfig_2fmconfigs_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fmconfig_2fmconfigs_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/mconfig/mconfigs.pb.cc:4464:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(9, this->_internal_allowed_gre_peers(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/mconfig/mconfigs.pb.cc:7622:72: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(25, this->_internal_apn_correction_map_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/mconfig/mconfigs.pb.cc:7670:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(32, this->_internal_restricted_plmns(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/mconfig/mconfigs.pb.cc:7727:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(35, this->_internal_restricted_imeis(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/mconfig/mconfigs.pb.cc:8231:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_mapping(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/sms_orc8r_client/lte/protos/mconfig/mconfigs.pb.cc:10480:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_records(i), target, stream); |
|
^ |
|
61745 warnings generated. |
|
Suppressed 61741 warnings (61736 in non-user code, 4 NOLINT, 1 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.grpc.pb.cc |
|
65470 warnings generated. |
|
Suppressed 65474 warnings (65470 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/n11/orc8r/protos/common.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/orc8r/protos/common.pb.cc:763:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/orc8r/protos/common.pb.cc:157:13: warning: initialization of 'dynamic_init_dummy_orc8r_2fprotos_2fcommon_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_orc8r_2fprotos_2fcommon_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_orc8r_2fprotos_2fcommon_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
61108 warnings generated. |
|
Suppressed 61110 warnings (61106 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cTrxn.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:149:5: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = nwGtpv2cTrxnDelete(&thiz); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:149:5: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:372:9: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = pCollision->pStack->udp.udpDataReqCallback( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cTrxn.c:372:9: note: Value stored to 'rc' is never read |
|
5810 warnings generated. |
|
Suppressed 5808 warnings (5804 in non-user code, 4 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cTunnel.c |
|
5790 warnings generated. |
|
Suppressed 5790 warnings (5786 in non-user code, 4 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsg.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsg.c:621:7: warning: Value stored to 'pIeValue' is never read [clang-analyzer-deadcode.DeadStores] |
|
pIeValue += 4; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsg.c:621:7: note: Value stored to 'pIeValue' is never read |
|
5791 warnings generated. |
|
Suppressed 5790 warnings (5786 in non-user code, 4 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:893:11: warning: The expression is an uninitialized value. The computed value will also be garbage [clang-analyzer-core.uninitialized.Assign] |
|
pMsgIeParseInfo->mandatoryIeCount++; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:940:3: note: Assuming field 'memAlloc' is null |
|
NW_GTPV2C_MALLOC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/include/NwGtpv2cPrivate.h:63:9: note: expanded from macro 'NW_GTPV2C_MALLOC' |
|
if (((nw_gtpv2c_stack_t*) (_stack))->memMgr.memAlloc && \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:940:3: note: Left side of '&&' is false |
|
NW_GTPV2C_MALLOC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/include/NwGtpv2cPrivate.h:63:58: note: expanded from macro 'NW_GTPV2C_MALLOC' |
|
if (((nw_gtpv2c_stack_t*) (_stack))->memMgr.memAlloc && \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:940:3: note: Loop condition is false. Exiting loop |
|
NW_GTPV2C_MALLOC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/include/NwGtpv2cPrivate.h:62:3: note: expanded from macro 'NW_GTPV2C_MALLOC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:944:7: note: Assuming 'thiz' is non-null |
|
if (thiz) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:944:3: note: Taking true branch |
|
if (thiz) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:949:5: note: Control jumps to 'case 176:' at line 1132 |
|
switch (msgType) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:1133:14: note: Calling 'nwGtpv2cMsgIeParseInfoUpdate' |
|
rc = nwGtpv2cMsgIeParseInfoUpdate(thiz, downlinkDataNtfIeInfoTbl); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:871:3: note: Loop condition is true. Entering loop body |
|
for (i = 0; pMsgIeInfo[i].ieType; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:872:9: note: Assuming field 'pGroupedIeInfo' is non-null |
|
if (pMsgIeInfo[i].pGroupedIeInfo) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:872:5: note: Taking true branch |
|
if (pMsgIeInfo[i].pGroupedIeInfo) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:875:7: note: Assuming field 'memAlloc' is null |
|
NW_GTPV2C_MALLOC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/include/NwGtpv2cPrivate.h:63:9: note: expanded from macro 'NW_GTPV2C_MALLOC' |
|
if (((nw_gtpv2c_stack_t*) (_stack))->memMgr.memAlloc && \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:875:7: note: Left side of '&&' is false |
|
NW_GTPV2C_MALLOC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/include/NwGtpv2cPrivate.h:63:58: note: expanded from macro 'NW_GTPV2C_MALLOC' |
|
if (((nw_gtpv2c_stack_t*) (_stack))->memMgr.memAlloc && \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:875:7: note: Uninitialized value stored to field 'mandatoryIeCount' |
|
NW_GTPV2C_MALLOC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/include/NwGtpv2cPrivate.h:71:22: note: expanded from macro 'NW_GTPV2C_MALLOC' |
|
_mem = (_type) malloc(_size); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:875:7: note: Loop condition is false. Exiting loop |
|
NW_GTPV2C_MALLOC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/include/NwGtpv2cPrivate.h:62:3: note: expanded from macro 'NW_GTPV2C_MALLOC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:881:7: note: Loop condition is true. Entering loop body |
|
for (j = 0; pMsgIeInfo[i].pGroupedIeInfo[j].ieType; j++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:891:13: note: Assuming field 'iePresence' is equal to NW_GTPV2C_IE_PRESENCE_MANDATORY |
|
if (pMsgIeInfo[i].pGroupedIeInfo[j].iePresence == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:891:9: note: Taking true branch |
|
if (pMsgIeInfo[i].pGroupedIeInfo[j].iePresence == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgIeParseInfo.c:893:11: note: The expression is an uninitialized value. The computed value will also be garbage |
|
pMsgIeParseInfo->mandatoryIeCount++; |
|
^ |
|
5803 warnings generated. |
|
Suppressed 5802 warnings (5798 in non-user code, 4 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2cMsgParser.c |
|
5805 warnings generated. |
|
Suppressed 5805 warnings (5801 in non-user code, 4 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:88:5: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
__thiz->pGtpv2cMsgIeParseInfo[__msgType] = nwGtpv2cMsgIeParseInfoNew( \ |
|
^ |
|
( ) |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:89:36: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
(nw_gtpv2c_stack_handle_t) __thiz, __msgType); \ |
|
^ |
|
( ) |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1229:3: warning: if with identical then and else branches [bugprone-branch-clone] |
|
if (pLocalTunnel) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1232:5: note: else branch starts here |
|
} else { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1553:40: warning: conditional operator with identical true and false expressions [bugprone-branch-clone] |
|
peerIp->sa_family == AF_INET ? INET_ADDRSTRLEN : INET_ADDRSTRLEN); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1553:58: warning: 'true' and 'false' expressions are equivalent [misc-redundant-expression] |
|
peerIp->sa_family == AF_INET ? INET_ADDRSTRLEN : INET_ADDRSTRLEN); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1952:5: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case NW_GTP_CREATE_SESSION_REQ: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:1973:12: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c:2212:5: error: expected string literal in pragma diagnostic [clang-diagnostic-error] |
|
OAI_GCC_DIAG_ON(int - to - pointer - cast); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/gcc_diag.h:44:28: note: expanded from macro 'OAI_GCC_DIAG_ON' |
|
#define OAI_GCC_DIAG_ON(x) OAI_GCC_DIAG_PRAGMA(warning x) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/gcc_diag.h:36:32: note: expanded from macro 'OAI_GCC_DIAG_PRAGMA' |
|
#define OAI_GCC_DIAG_PRAGMA(x) OAI_GCC_DIAG_DO_PRAGMA(GCC diagnostic x) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/gcc_diag.h:35:35: note: expanded from macro 'OAI_GCC_DIAG_DO_PRAGMA' |
|
#define OAI_GCC_DIAG_DO_PRAGMA(x) _Pragma(#x) |
|
^ |
|
note: expanded from here |
|
5800 warnings and 1 error generated. |
|
Error while processing /workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/nwgtpv2c-0.11/src/NwGtpv2c.c. |
|
Suppressed 5794 warnings (5789 in non-user code, 5 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
Found compiler error(s). |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:162:8: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
(fteid->ipv4 << 7) | (fteid->ipv6 << 6) | (fteid->interface_type & 0x3F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:162:29: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
(fteid->ipv4 << 7) | (fteid->ipv6 << 6) | (fteid->interface_type & 0x3F); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:169:7: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (fteid->ipv4 == 1) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:176:7: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (fteid->ipv6 == 1) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:207:7: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (fteid->ipv4 == 1) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:221:7: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (fteid->ipv6 == 1) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:458:8: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
(bearer_qos->pci << 6) | (bearer_qos->pl << 2) | (bearer_qos->pvi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:458:33: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
(bearer_qos->pci << 6) | (bearer_qos->pl << 2) | (bearer_qos->pvi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:458:56: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
(bearer_qos->pci << 6) | (bearer_qos->pl << 2) | (bearer_qos->pvi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:812:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
enbId[0] = target_identification->target_id.home_enb_id.enb_id >> 24 & 0x0F; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:813:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
enbId[1] = target_identification->target_id.home_enb_id.enb_id >> 16 & 0xFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:814:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
enbId[2] = target_identification->target_id.home_enb_id.enb_id >> 8 & 0xFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:815:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
enbId[3] = target_identification->target_id.home_enb_id.enb_id & 0xFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:826:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
enbId[0] = target_identification->target_id.home_enb_id.enb_id >> 16 & 0xFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:827:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
enbId[1] = target_identification->target_id.home_enb_id.enb_id >> 8 & 0xFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:828:16: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
enbId[2] = target_identification->target_id.home_enb_id.enb_id & 0xFF; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:935:9: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = gtpv2c_cause_ie_get( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:935:9: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:942:9: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = gtpv2c_bearer_qos_ie_get( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:942:9: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:1020:9: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = gtpv2c_bearer_qos_ie_get( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/gtpv2-c/gtpv2c_ie_formatter/src/gtpv2c_ie_formatter.c:1020:9: note: Value stored to 'rc' is never read |
|
6422 warnings generated. |
|
Suppressed 6403 warnings (6395 in non-user code, 8 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/oai_mme/oai_mme.c |
|
/workspaces/magma/lte/gateway/c/oai/oai_mme/oai_mme.c:93:3: warning: random number generator seeded with a disallowed source of seed value will generate a predictable sequence of values [cert-msc32-c,cert-msc51-cpp] |
|
srand(time(NULL)); |
|
^ |
|
10961 warnings generated. |
|
Suppressed 10959 warnings (10910 in non-user code, 49 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/common_types.c |
|
/workspaces/magma/lte/gateway/c/oai/common/common_types.c:92:7: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (fteid->ipv4 && fteid->ipv6) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/common_types.c:92:22: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (fteid->ipv4 && fteid->ipv6) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/common_types.c:121:42: warning: 'bstr' declared with a const-qualified typedef; results in the type being 'struct tagbstring *const' instead of 'const struct tagbstring *' [misc-misplaced-const] |
|
void bstring_to_ip_address(bstring const bstr, ip_address_t* const ip_address) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:38:28: note: typedef declared here |
|
typedef struct tagbstring* bstring; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/common_types.c:183:35: warning: 'bstr' declared with a const-qualified typedef; results in the type being 'struct tagbstring *const' instead of 'const struct tagbstring *' [misc-misplaced-const] |
|
void bstring_to_paa(const bstring bstr, paa_t* paa) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:38:28: note: typedef declared here |
|
typedef struct tagbstring* bstring; |
|
^ |
|
5651 warnings generated. |
|
11302 warnings generated. |
|
Suppressed 11294 warnings (11290 in non-user code, 4 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:46:5: warning: switch has 3 consecutive identical branches [bugprone-branch-clone] |
|
case GTPV1U_CREATE_TUNNEL_REQ: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:61:12: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:76:51: warning: Value stored to 'mme_app_est_cnf' during its initialization is never read [clang-analyzer-deadcode.DeadStores] |
|
itti_mme_app_connection_establishment_cnf_t mme_app_est_cnf = {0}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:76:51: note: Value stored to 'mme_app_est_cnf' during its initialization is never read |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:87:5: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case MME_APP_INITIAL_CONTEXT_SETUP_RSP: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:92:12: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:155:5: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case S1AP_UE_CAPABILITIES_IND: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/itti_free_defined_msg.c:167:12: note: last of these clones ends here |
|
break; |
|
^ |
|
10531 warnings generated. |
|
21062 warnings generated. |
|
Suppressed 21054 warnings (21008 in non-user code, 46 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/service303/service303_task.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/service303/service303_task.c:168:48: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
stop_timer(&service303_message_task_zmq_ctx, service303_epc_stats_timer_id); |
|
^ |
|
10545 warnings generated. |
|
Suppressed 10544 warnings (10521 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/service303/service303_mme_stats.c |
|
5747 warnings generated. |
|
Suppressed 5747 warnings (5724 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/grpc_service/grpc_service_task.c |
|
10563 warnings generated. |
|
Suppressed 10563 warnings (10540 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_capabilities.c |
|
11101 warnings generated. |
|
Suppressed 11101 warnings (11077 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:167:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(sgs_context_p->ts6_1_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:172:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(sgs_context_p->ts8_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:178:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(sgs_context_p->ts9_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:183:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(sgs_context_p->ts10_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:188:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(sgs_context_p->ts13_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:201:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->mobile_reachability_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:206:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->implicit_detach_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:213:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->initial_context_setup_rsp_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:221:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->ue_context_modification_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:227:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->ulr_response_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:233:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->paging_response_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:423:5: warning: Value stored to 'h_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
h_rc = hashtable_uint64_ts_remove( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:423:5: note: Value stored to 'h_rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:453:7: warning: Value stored to 'h_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
h_rc = hashtable_ts_remove( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:453:7: note: Value stored to 'h_rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:481:3: warning: Value stored to 'h_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
h_rc = hashtable_uint64_ts_remove( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:481:3: note: Value stored to 'h_rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:502:5: warning: Value stored to 'h_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
h_rc = hashtable_uint64_ts_remove( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:502:5: note: Value stored to 'h_rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:539:7: warning: Value stored to 'h_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
h_rc = obj_hashtable_uint64_ts_remove( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:539:7: note: Value stored to 'h_rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:1404:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->mobile_reachability_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:1409:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->implicit_detach_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:1497:46: warning: macro argument should be enclosed in parentheses [bugprone-macro-parentheses] |
|
((ue_mm_context->access_restriction_data & mASK) ? 'X' : 'O') |
|
^ |
|
( ) |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:1679:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->ue_context_modification_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:1716:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->ue_context_modification_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:1988:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_mm_context->initial_context_setup_rsp_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_context.c:1997:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_mm_context->ue_context_modification_timer.id); |
|
^ |
|
11454 warnings generated. |
|
Suppressed 11431 warnings (11407 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_if_nas_transport.c |
|
2 warnings generated. |
|
Suppressed 2 warnings (2 with check filters). |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_main.c |
|
11102 warnings generated. |
|
Suppressed 11102 warnings (11077 in non-user code, 25 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:295:17: warning: Value stored to 'emm_context' during its initialization is never read [clang-analyzer-deadcode.DeadStores] |
|
emm_context_t emm_context = {0}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:295:17: note: Value stored to 'emm_context' during its initialization is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:336:12: warning: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' [clang-analyzer-deadcode.DeadStores] |
|
(rc = mme_app_send_sgsap_service_request( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:336:12: note: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:386:12: warning: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' [clang-analyzer-deadcode.DeadStores] |
|
if ((rc = mme_app_send_sgsap_paging_reject( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:386:12: note: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:529:12: warning: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' [clang-analyzer-deadcode.DeadStores] |
|
(rc = mme_app_send_sgsap_service_request( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:529:12: note: Although the value stored to 'rc' is used in the enclosing expression, the value is never actually read from 'rc' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:653:30: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->paging_response_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1272:43: warning: Access to field 'qci' results in a dereference of a null pointer (loaded from variable 'current_bearer_p') [clang-analyzer-core.NullDereference] |
|
nas_pdn_cs_respose_success.qci = current_bearer_p->qci; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1047:7: note: Assuming 'create_sess_resp_pP' is not equal to NULL |
|
if (create_sess_resp_pP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1047:3: note: Taking false branch |
|
if (create_sess_resp_pP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1056:7: note: Assuming 'ue_context_p' is not equal to NULL |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1056:3: note: Taking false branch |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1063:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO_UE( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:598:3: note: expanded from macro 'OAILOG_INFO_UE' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1086:7: note: Assuming field 'cause_value' is equal to REQUEST_ACCEPTED |
|
if (create_sess_resp_pP->cause.cause_value != REQUEST_ACCEPTED) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1086:3: note: Taking false branch |
|
if (create_sess_resp_pP->cause.cause_value != REQUEST_ACCEPTED) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1102:8: note: Assuming 'i' is < field 'num_bearer_context' |
|
i < create_sess_resp_pP->bearer_contexts_created.num_bearer_context; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1101:3: note: Loop condition is true. Entering loop body |
|
for (int i = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1109:9: note: Assuming field 'n_active_ebrs' is <= BEARERS_PER_UE |
|
if (ue_context_p->emm_context.esm_ctx.n_active_ebrs > BEARERS_PER_UE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1109:5: note: Taking false branch |
|
if (ue_context_p->emm_context.esm_ctx.n_active_ebrs > BEARERS_PER_UE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1116:9: note: Assuming field 'cause_value' is equal to REQUEST_ACCEPTED |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1116:5: note: Taking false branch |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1123:9: note: Assuming field 'interface_type' is equal to S1_U_SGW_GTP_U |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1123:5: note: Taking false branch |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1135:9: note: Assuming 'current_bearer_p' is not equal to NULL |
|
if (current_bearer_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1135:5: note: Taking false branch |
|
if (current_bearer_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1144:10: note: 'i' is 0 |
|
if (!i) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1144:5: note: Taking true branch |
|
if (!i) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1149:12: note: Assuming 'pdn_cx_id' is >= 0 |
|
if ((pdn_cx_id < 0) || (pdn_cx_id >= MAX_APN_PER_UE)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1149:11: note: Left side of '||' is false |
|
if ((pdn_cx_id < 0) || (pdn_cx_id >= MAX_APN_PER_UE)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1149:31: note: Assuming 'pdn_cx_id' is < MAX_APN_PER_UE |
|
if ((pdn_cx_id < 0) || (pdn_cx_id >= MAX_APN_PER_UE)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1149:7: note: Taking false branch |
|
if ((pdn_cx_id < 0) || (pdn_cx_id >= MAX_APN_PER_UE)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1155:11: note: Assuming the condition is false |
|
if (ue_context_p->pdn_contexts[pdn_cx_id]) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1155:7: note: Taking false branch |
|
if (ue_context_p->pdn_contexts[pdn_cx_id]) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1183:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG_UE( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:476:3: note: expanded from macro 'OAILOG_DEBUG_UE' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1191:9: note: Assuming field 'bearer_level_qos' is null |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1191:5: note: Taking false branch |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1223:7: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG_UE( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:476:3: note: expanded from macro 'OAILOG_DEBUG_UE' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1102:8: note: Assuming 'i' is < field 'num_bearer_context' |
|
i < create_sess_resp_pP->bearer_contexts_created.num_bearer_context; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1101:3: note: Loop condition is true. Entering loop body |
|
for (int i = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1109:9: note: Assuming field 'n_active_ebrs' is <= BEARERS_PER_UE |
|
if (ue_context_p->emm_context.esm_ctx.n_active_ebrs > BEARERS_PER_UE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1109:5: note: Taking false branch |
|
if (ue_context_p->emm_context.esm_ctx.n_active_ebrs > BEARERS_PER_UE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1116:9: note: Assuming field 'cause_value' is equal to REQUEST_ACCEPTED |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1116:5: note: Taking false branch |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1123:9: note: Assuming field 'interface_type' is equal to S1_U_SGW_GTP_U |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1123:5: note: Taking false branch |
|
if (create_sess_resp_pP->bearer_contexts_created.bearer_contexts[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1134:5: note: Value assigned to 'current_bearer_p' |
|
current_bearer_p = mme_app_get_bearer_context(ue_context_p, bearer_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1135:9: note: Assuming 'current_bearer_p' is equal to NULL |
|
if (current_bearer_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1135:5: note: Taking true branch |
|
if (current_bearer_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1136:7: note: Loop condition is false. Exiting loop |
|
OAILOG_ERROR_UE( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:582:3: note: expanded from macro 'OAILOG_ERROR_UE' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1139:7: note: Execution continues on line 1103 |
|
continue; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1102:8: note: Assuming 'i' is >= field 'num_bearer_context' |
|
i < create_sess_resp_pP->bearer_contexts_created.num_bearer_context; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1101:3: note: Loop condition is false. Execution continues on line 1230 |
|
for (int i = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1230:7: note: 'num_successful_bearers' is not equal to 0 |
|
if (num_successful_bearers == 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1230:3: note: Taking false branch |
|
if (num_successful_bearers == 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1244:7: note: Assuming field 'pdn_type' is equal to IPv4 |
|
if (create_sess_resp_pP->paa.pdn_type == IPv4) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1244:3: note: Taking true branch |
|
if (create_sess_resp_pP->paa.pdn_type == IPv4) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1260:7: note: Assuming field 'pdn_addr' is non-null |
|
if (!nas_pdn_cs_respose_success.pdn_addr) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1260:3: note: Taking false branch |
|
if (!nas_pdn_cs_respose_success.pdn_addr) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1272:43: note: Access to field 'qci' results in a dereference of a null pointer (loaded from variable 'current_bearer_p') |
|
nas_pdn_cs_respose_success.qci = current_bearer_p->qci; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1324:8: warning: loop variable has narrower type 'uint8_t' (aka 'unsigned char') than iteration's upper bound 'uint16_t' (aka 'unsigned short') [bugprone-too-small-loop-variable] |
|
item < initial_ctxt_setup_rsp_p->e_rab_setup_list.no_of_items; item++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1348:8: warning: loop variable has narrower type 'uint8_t' (aka 'unsigned char') than iteration's upper bound 'uint16_t' (aka 'unsigned short') [bugprone-too-small-loop-variable] |
|
item < initial_ctxt_setup_rsp_p->e_rab_failed_to_setup_list.no_of_items; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1403:8: warning: loop variable has narrower type 'uint8_t' (aka 'unsigned char') than iteration's upper bound 'uint16_t' (aka 'unsigned short') [bugprone-too-small-loop-variable] |
|
item < initial_ctxt_setup_rsp_p->e_rab_setup_list.no_of_items; item++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1542:25: warning: loop variable has narrower type 'uint8_t' (aka 'unsigned char') than iteration's upper bound 'int' [bugprone-too-small-loop-variable] |
|
for (uint8_t pid = 0; pid < ue_context_p->nb_active_pdn_contexts; pid++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1623:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->initial_context_setup_rsp_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:1992:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->initial_context_setup_rsp_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:2030:21: warning: loop variable has narrower type 'uint8_t' (aka 'unsigned char') than iteration's upper bound 'int' [bugprone-too-small-loop-variable] |
|
for (num_mme = 0; num_mme < mme_config.gummei.nb; num_mme++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:2217:5: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(paging_req->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3118:36: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign] |
|
*s11_deact_ded_bearer_rsp->lbi = ebi[0]; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3171:7: note: Assuming 'ue_context_p' is not equal to NULL |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3171:3: note: Taking false branch |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3178:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3194:7: note: Assuming field 'delete_default_bearer' is true |
|
if ((nw_init_bearer_deactv_req_p->delete_default_bearer) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3194:7: note: Left side of '&&' is true |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3195:8: note: Assuming field 'nb_active_pdn_contexts' is not equal to 1 |
|
(ue_context_p->nb_active_pdn_contexts == 1)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3194:3: note: Taking false branch |
|
if ((nw_init_bearer_deactv_req_p->delete_default_bearer) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3216:9: note: Assuming field 'ecm_state' is not equal to ECM_CONNECTED |
|
if (ue_context_p->ecm_state == ECM_CONNECTED) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3216:5: note: Taking false branch |
|
if (ue_context_p->ecm_state == ECM_CONNECTED) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3235:19: note: Assuming 'i' is >= field 'no_of_bearers' |
|
for (i = 0; i < nw_init_bearer_deactv_req_p->no_of_bearers; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3235:7: note: Loop condition is false. Execution continues on line 3251 |
|
for (i = 0; i < nw_init_bearer_deactv_req_p->no_of_bearers; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3251:7: note: Calling 'send_delete_dedicated_bearer_rsp' |
|
send_delete_dedicated_bearer_rsp( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3095:7: note: 'ue_context_p' is not equal to NULL |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3095:3: note: Taking false branch |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3103:7: note: Assuming 'message_p' is not equal to NULL |
|
if (message_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3103:3: note: Taking false branch |
|
if (message_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3116:7: note: 'delete_default_bearer' is true |
|
if (delete_default_bearer) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3116:3: note: Taking true branch |
|
if (delete_default_bearer) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3118:36: note: Assigned value is garbage or undefined |
|
*s11_deact_ded_bearer_rsp->lbi = ebi[0]; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3124:26: warning: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign] |
|
.eps_bearer_id = ebi[i]; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3171:7: note: Assuming 'ue_context_p' is not equal to NULL |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3171:3: note: Taking false branch |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3178:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3194:7: note: Assuming field 'delete_default_bearer' is false |
|
if ((nw_init_bearer_deactv_req_p->delete_default_bearer) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3194:60: note: Left side of '&&' is false |
|
if ((nw_init_bearer_deactv_req_p->delete_default_bearer) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3216:9: note: Assuming field 'ecm_state' is not equal to ECM_CONNECTED |
|
if (ue_context_p->ecm_state == ECM_CONNECTED) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3216:5: note: Taking false branch |
|
if (ue_context_p->ecm_state == ECM_CONNECTED) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3235:19: note: Assuming 'i' is < field 'no_of_bearers' |
|
for (i = 0; i < nw_init_bearer_deactv_req_p->no_of_bearers; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3235:7: note: Loop condition is true. Entering loop body |
|
for (i = 0; i < nw_init_bearer_deactv_req_p->no_of_bearers; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3239:13: note: Assuming 'bearer_context' is null |
|
if (bearer_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3239:9: note: Taking false branch |
|
if (bearer_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3244:11: note: Loop condition is false. Exiting loop |
|
OAILOG_ERROR_UE( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:582:3: note: expanded from macro 'OAILOG_ERROR_UE' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3235:19: note: Assuming 'i' is < field 'no_of_bearers' |
|
for (i = 0; i < nw_init_bearer_deactv_req_p->no_of_bearers; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3235:7: note: Loop condition is true. Entering loop body |
|
for (i = 0; i < nw_init_bearer_deactv_req_p->no_of_bearers; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3239:13: note: Assuming 'bearer_context' is non-null |
|
if (bearer_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3239:9: note: Taking true branch |
|
if (bearer_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3235:19: note: Assuming 'i' is >= field 'no_of_bearers' |
|
for (i = 0; i < nw_init_bearer_deactv_req_p->no_of_bearers; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3235:7: note: Loop condition is false. Execution continues on line 3251 |
|
for (i = 0; i < nw_init_bearer_deactv_req_p->no_of_bearers; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3251:7: note: Calling 'send_delete_dedicated_bearer_rsp' |
|
send_delete_dedicated_bearer_rsp( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3095:7: note: 'ue_context_p' is not equal to NULL |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3095:3: note: Taking false branch |
|
if (ue_context_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3103:7: note: Assuming 'message_p' is not equal to NULL |
|
if (message_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3103:3: note: Taking false branch |
|
if (message_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3116:7: note: 'delete_default_bearer' is false |
|
if (delete_default_bearer) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3116:3: note: Taking false branch |
|
if (delete_default_bearer) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3122:10: note: The value 0 is assigned to 'i' |
|
for (i = 0; i < num_bearer_context; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3122:5: note: Loop condition is true. Entering loop body |
|
for (i = 0; i < num_bearer_context; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3124:26: note: Assigned value is garbage or undefined |
|
.eps_bearer_id = ebi[i]; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3287:19: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
((uint16_t) ue_context_p->emm_context._ue_network_capability.eea & |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3267:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3273:3: note: Value assigned to 'ue_context_p' |
|
ue_context_p = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3276:7: note: Assuming 'ue_context_p' is null |
|
if (!ue_context_p) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3276:3: note: Taking true branch |
|
if (!ue_context_p) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3277:5: note: Loop condition is false. Exiting loop |
|
OAILOG_ERROR( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3287:19: note: Dereference of null pointer |
|
((uint16_t) ue_context_p->emm_context._ue_network_capability.eea & |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3440:25: warning: Value stored to 'e_rab_admitted_list' during its initialization is never read [clang-analyzer-deadcode.DeadStores] |
|
e_rab_admitted_list_t e_rab_admitted_list = {0}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3440:25: note: Value stored to 'e_rab_admitted_list' during its initialization is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3742:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
if (pdn_context->esm_data.n_bearers == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3595:3: note: 'pdn_context' initialized to a null pointer value |
|
pdn_context_t* pdn_context = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3598:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG(LOG_MME_APP, "Received PATH_SWITCH_REQUEST from S1AP\n"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3602:7: note: Assuming 'ue_context_p' is non-null |
|
if (!ue_context_p) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3602:3: note: Taking false branch |
|
if (!ue_context_p) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3610:7: note: Assuming field 'enb_s1ap_id_key' is equal to INVALID_ENB_UE_S1AP_ID_KEY |
|
if (ue_context_p->enb_s1ap_id_key != INVALID_ENB_UE_S1AP_ID_KEY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3610:3: note: Taking false branch |
|
if (ue_context_p->enb_s1ap_id_key != INVALID_ENB_UE_S1AP_ID_KEY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3620:3: note: Loop condition is false. Exiting loop |
|
MME_APP_ENB_S1AP_ID_KEY( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/common_types.h:59:3: note: expanded from macro 'MME_APP_ENB_S1AP_ID_KEY' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3624:8: note: Assuming the condition is false |
|
if (!IS_EMM_CTXT_PRESENT_GUTI(&(ue_context_p->emm_context))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/emm_data.h:309:5: note: expanded from macro 'IS_EMM_CTXT_PRESENT_GUTI' |
|
(!!((eMmCtXtPtR)->member_present_mask & EMM_CTXT_MEMBER_GUTI)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3624:3: note: Taking false branch |
|
if (!IS_EMM_CTXT_PRESENT_GUTI(&(ue_context_p->emm_context))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3636:8: note: Assuming 'ue_network_capability.eea' is equal to 'ue_context_p->emm_context._ue_network_capability.eea' |
|
if ((ue_network_capability.eea != |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3636:7: note: Left side of '||' is false |
|
if ((ue_network_capability.eea != |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3638:8: note: Assuming 'ue_network_capability.eia' is equal to 'ue_context_p->emm_context._ue_network_capability.eia' |
|
(ue_network_capability.eia != |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3636:3: note: Taking false branch |
|
if ((ue_network_capability.eea != |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3648:7: note: Assuming 'message_p' is not equal to NULL |
|
if (message_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3648:3: note: Taking false branch |
|
if (message_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3660:17: note: Assuming 'idx' is >= field 'no_of_items' |
|
for (idx = 0; idx < e_rab_to_be_switched_dl_list.no_of_items; idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3660:3: note: Loop condition is false. Execution continues on line 3742 |
|
for (idx = 0; idx < e_rab_to_be_switched_dl_list.no_of_items; idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3742:7: note: Dereference of null pointer |
|
if (pdn_context->esm_data.n_bearers == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer.c:3919:10: warning: loop variable has narrower type 'uint8_t' (aka 'unsigned char') than iteration's upper bound 'uint16_t' (aka 'unsigned short') [bugprone-too-small-loop-variable] |
|
for (; idx < e_rab_to_be_switched_dl_list.no_of_items; ++idx) { |
|
^ |
|
11425 warnings generated. |
|
Suppressed 11405 warnings (11378 in non-user code, 27 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_authentication.c |
|
2 warnings generated. |
|
Suppressed 2 warnings (2 with check filters). |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_detach.c |
|
11408 warnings generated. |
|
Suppressed 11408 warnings (11384 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_location.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_location.c:176:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->ulr_response_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_location.c:209:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64((char*) ula_pP->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_location.c:220:7: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (ula_pP->result.present == S6A_RESULT_BASE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_location.c:270:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_mm_context->ulr_response_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_location.c:373:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64((char*) clr_pP->imsi, &imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
11418 warnings generated. |
|
Suppressed 11413 warnings (11384 in non-user code, 29 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_transport.c |
|
11101 warnings generated. |
|
Suppressed 11101 warnings (11077 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_ue_context.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_ue_context.c:109:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
sscanf(imsi_src.data, "%" SCNu64, &uint_imsi); |
|
^ |
|
6307 warnings generated. |
|
Suppressed 6306 warnings (6283 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_statistics.c |
|
11101 warnings generated. |
|
Suppressed 11101 warnings (11077 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:458:11: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
config_pP->log_config.asn1_verbosity_level = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:458:57: note: end of the original |
|
config_pP->log_config.asn1_verbosity_level = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:466:11: note: clone 1 starts here |
|
config_pP->log_config.asn1_verbosity_level = 0; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:732:60: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->served_tai.plmn_mcc[i] = (uint16_t) atoi(mcc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:737:64: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->served_tai.plmn_mnc[i] = (uint16_t) atoi(mnc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:750:55: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->served_tai.tac[i] = (uint16_t) atoi(tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:818:50: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
config_pP->served_tai.plmn_mnc[0])) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:822:10: note: end of the original |
|
} else if ( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:826:54: note: clone 1 starts here |
|
config_pP->served_tai.plmn_mnc[i - 1])) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:866:69: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->gummei.gummei[i].plmn.mcc_digit1 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:868:69: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->gummei.gummei[i].plmn.mcc_digit2 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:870:69: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->gummei.gummei[i].plmn.mcc_digit3 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:881:69: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->gummei.gummei[i].plmn.mnc_digit1 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:883:69: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->gummei.gummei[i].plmn.mnc_digit2 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:886:71: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->gummei.gummei[i].plmn.mnc_digit3 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:894:62: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->gummei.gummei[i].mme_gid = (uint16_t) atoi(mnc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:898:62: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->gummei.gummei[i].mme_code = (uint8_t) atoi(mnc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:997:59: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->mode_map_config.mode_map[i].mode = atoi(astring); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1010:44: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
n = strlen(astring) - MAX_MCC_LENGTH; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1095:15: warning: Potential leak of memory pointed to by 'imsi_low_tmp' [clang-analyzer-unix.Malloc] |
|
setting = config_setting_get_member( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:335:7: note: Assuming field 'config_file' is not equal to NULL |
|
if (config_pP->config_file != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:335:3: note: Taking true branch |
|
if (config_pP->config_file != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:339:50: note: Field 'config_file' is not equal to null |
|
if (!config_read_file(&cfg, bdata(config_pP->config_file))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:339:33: note: Left side of '||' is false |
|
if (!config_read_file(&cfg, bdata(config_pP->config_file))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:221:19: note: expanded from macro 'bdata' |
|
#define bdata(b) (bdataofs(b, 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:219:25: note: expanded from macro 'bdataofs' |
|
#define bdataofs(b, o) (bdataofse((b), (o), (void*) 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:217:5: note: expanded from macro 'bdataofse' |
|
(((b) == (void*) 0 || (b)->data == (void*) 0) ? (char*) (e) : \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:339:33: note: Assuming field 'data' is not equal to null |
|
if (!config_read_file(&cfg, bdata(config_pP->config_file))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:221:19: note: expanded from macro 'bdata' |
|
#define bdata(b) (bdataofs(b, 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:219:25: note: expanded from macro 'bdataofs' |
|
#define bdataofs(b, o) (bdataofse((b), (o), (void*) 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:217:25: note: expanded from macro 'bdataofse' |
|
(((b) == (void*) 0 || (b)->data == (void*) 0) ? (char*) (e) : \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:339:33: note: '?' condition is false |
|
if (!config_read_file(&cfg, bdata(config_pP->config_file))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:221:19: note: expanded from macro 'bdata' |
|
#define bdata(b) (bdataofs(b, 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:219:25: note: expanded from macro 'bdataofs' |
|
#define bdataofs(b, o) (bdataofse((b), (o), (void*) 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:217:4: note: expanded from macro 'bdataofse' |
|
(((b) == (void*) 0 || (b)->data == (void*) 0) ? (char*) (e) : \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:339:9: note: Assuming the condition is false |
|
if (!config_read_file(&cfg, bdata(config_pP->config_file))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:339:5: note: Taking false branch |
|
if (!config_read_file(&cfg, bdata(config_pP->config_file))) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:356:7: note: Assuming 'setting_mme' is not equal to NULL |
|
if (setting_mme != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:356:3: note: Taking true branch |
|
if (setting_mme != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:360:9: note: Assuming 'setting' is equal to NULL |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:360:5: note: Taking false branch |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:471:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:471:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:476:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:476:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:482:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:482:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:488:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:488:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:493:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:493:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:499:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:499:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:504:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:504:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:509:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:509:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:514:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:514:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:519:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:519:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:525:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:525:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:531:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:531:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:536:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:536:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:542:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:542:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:547:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:547:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:552:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:552:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:557:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:557:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:562:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:562:5: note: Taking false branch |
|
if ((config_setting_lookup_int( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:567:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:567:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:574:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:574:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:580:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:580:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:587:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:587:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:594:10: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:594:5: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:604:9: note: Assuming 'setting' is equal to NULL |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:604:5: note: Taking false branch |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:616:9: note: Assuming 'setting' is equal to NULL |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:616:5: note: Taking false branch |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:663:9: note: Assuming 'setting' is equal to NULL |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:663:5: note: Taking false branch |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:678:9: note: Assuming 'setting' is equal to NULL |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:678:5: note: Taking false branch |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:692:9: note: Assuming 'setting' is equal to NULL |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:692:5: note: Taking false branch |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:843:9: note: Assuming 'setting' is equal to NULL |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:843:5: note: Taking false branch |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:909:5: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO(LOG_MME_APP, "MME_CONFIG_STRING_RESTRICTED_PLMN_LIST \n"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:910:9: note: Assuming 'setting' is equal to NULL |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:910:5: note: Taking false branch |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:980:5: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO(LOG_MME_APP, "MME_CONFIG_STRING_FED_MODE_MAP \n"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:981:9: note: Assuming 'setting' is not equal to NULL |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:981:5: note: Taking true branch |
|
if (setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:983:7: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO(LOG_MME_APP, "Number of mode maps configured =%d\n", num); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:985:11: note: Assuming 'num' is <= 10 |
|
num <= MAX_FED_MODE_MAP_CONFIG, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:12: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:984:7: note: Taking false branch |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:984:7: note: Loop condition is false. Exiting loop |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:990:19: note: Assuming 'i' is < 'num' |
|
for (i = 0; i < num; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:990:7: note: Loop condition is true. Entering loop body |
|
for (i = 0; i < num; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:992:13: note: Assuming 'sub2setting' is not equal to NULL |
|
if (sub2setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:992:9: note: Taking true branch |
|
if (sub2setting != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:993:11: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO(LOG_MME_APP, "sub2setting\n"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:995:16: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:995:11: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1001:16: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1001:11: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1063:16: note: Assuming the condition is true |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1063:11: note: Taking true branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1065:17: note: Assuming the condition is true |
|
if (strlen(astring)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1065:13: note: Taking true branch |
|
if (strlen(astring)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1066:31: note: Memory is allocated |
|
imsi_high_tmp = strdup(astring); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1072:19: note: Assuming the condition is true |
|
strlen((char*) config_pP->mode_map_config.mode_map[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:12: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1071:15: note: Taking false branch |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1071:15: note: Loop condition is false. Exiting loop |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1079:19: note: Assuming the condition is true |
|
strlen((char*) config_pP->mode_map_config.mode_map[i] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:12: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1078:15: note: Taking false branch |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1078:15: note: Loop condition is false. Exiting loop |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1085:16: note: Assuming the condition is false |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1085:11: note: Taking false branch |
|
if ((config_setting_lookup_string( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:990:19: note: Assuming 'i' is >= 'num' |
|
for (i = 0; i < num; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:990:7: note: Loop condition is false. Execution continues on line 1095 |
|
for (i = 0; i < num; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1095:15: note: Potential leak of memory pointed to by 'imsi_low_tmp' |
|
setting = config_setting_get_member( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1125:15: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result] |
|
memcpy(imei_str, tac_str, strlen(tac_str)); |
|
^~~~~~ ~~~~~~~~~~~~~~~~~ |
|
strcpy |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1134:17: warning: the result from calling 'memcpy' is not null-terminated [bugprone-not-null-terminated-result] |
|
memcpy(&imei_str[strlen(tac_str)], snr_str, strlen(snr_str)); |
|
^~~~~~ ~~~~~~~~~~~~~~~~~ |
|
strcpy |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1139:13: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMEI_STRING_TO_IMEI64(imei_str, &imei64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:444:3: note: expanded from macro 'IMEI_STRING_TO_IMEI64' |
|
sscanf(sTRING, IMEI_64_FMT, iMEI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1183:40: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->ip.netmask_s1_mme = atoi((const char*) mask->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1205:37: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->ip.netmask_s11 = atoi((const char*) mask->data); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1239:48: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->lai.mccdigit1 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1241:48: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->lai.mccdigit2 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1243:48: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->lai.mccdigit3 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1253:48: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->lai.mncdigit1 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1255:48: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->lai.mncdigit2 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1258:50: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->lai.mncdigit3 = (uint8_t) atoi(c); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1266:43: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->lai.lac = (uint16_t) atoi(lac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1287:15: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
config_pP->nas_config.prefered_integrity_algorithm[i] = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1288:30: note: end of the original |
|
EIA0_ALG_ID; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1296:15: note: clone 1 starts here |
|
config_pP->nas_config.prefered_integrity_algorithm[i] = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1317:15: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
config_pP->nas_config.prefered_ciphering_algorithm[i] = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1318:30: note: end of the original |
|
EEA0_ALG_ID; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1326:15: note: clone 1 starts here |
|
config_pP->nas_config.prefered_ciphering_algorithm[i] = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1913:51: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
config_pP->config_file = blk2bstr(optarg, strlen(optarg)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_config.c:1920:54: warning: 'atoi' used to convert a string to an integer value, but function will not report conversion errors; consider using 'strtol' instead [cert-err34-c] |
|
config_pP->log_config.asn1_verbosity_level = atoi(optarg); |
|
^ |
|
8892 warnings generated. |
|
Suppressed 8860 warnings (8858 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/s6a_2_nas_cause.c |
|
2 warnings generated. |
|
Suppressed 2 warnings (2 with check filters). |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_purge_ue.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_purge_ue.c:94:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64((char*) pua_pP->imsi, &imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_purge_ue.c:97:7: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (pua_pP->result.present == S6A_RESULT_BASE) { |
|
^ |
|
11407 warnings generated. |
|
Suppressed 11405 warnings (11381 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_hss_reset.c |
|
11104 warnings generated. |
|
Suppressed 11104 warnings (11080 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:138:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->sgs_context->ts6_1_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:339:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->sgs_context->ts6_1_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:586:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(eps_detach_ack_p->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:602:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->sgs_context->ts8_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:607:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->sgs_context->ts13_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:641:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(imsi_detach_ack_p->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:657:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->sgs_context->ts9_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:689:49: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
S1AP_RADIO_EUTRAN_GENERATED_REASON)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:693:8: note: end of the original |
|
} else if ( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_detach.c:695:68: note: clone 1 starts here |
|
SGS_COMBINED_UE_INITIATED_IMSI_DETACH_FROM_EPS_N_NONEPS) { |
|
^ |
|
11413 warnings generated. |
|
Suppressed 11405 warnings (11381 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c:572:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(itti_sgsap_location_update_acc->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c:625:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(itti_sgsap_location_update_rej->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c:798:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->sgs_context->ts6_1_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c:829:66: warning: both sides of operator are equivalent [misc-redundant-expression] |
|
(sgs_context->ts8_timer.id == MME_APP_TIMER_INACTIVE_ID) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c:890:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(itti_sgsap_location_update_rej_p->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c:908:24: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->sgs_context->ts6_1_timer.id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c:986:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(itti_sgsap_location_update_rej_p->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c:1108:5: warning: switch has 3 consecutive identical branches [bugprone-branch-clone] |
|
case SGS_SERVICE_OPTION_NOT_SUPPORTED: { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_location_update.c:1116:12: note: last of these clones ends here |
|
} break; |
|
^ |
|
11414 warnings generated. |
|
Suppressed 11406 warnings (11381 in non-user code, 25 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:142:10: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
rc = (sgs_fsm_handlers[state])(sgs_evt); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:134:7: note: Assuming 'sgs_ctx' is non-null |
|
if (sgs_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:134:3: note: Taking true branch |
|
if (sgs_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:135:13: note: Calling 'sgs_fsm_get_status' |
|
state = sgs_fsm_get_status(sgs_evt->ue_id, sgs_ctx); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:213:7: note: 'sgs_ctx' is non-null |
|
if (sgs_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:213:3: note: Taking true branch |
|
if (sgs_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:214:10: note: Assuming field 'sgs_state' is >= SGS_STATE_MAX |
|
if ((sgs_ctx->sgs_state >= SGS_STATE_MAX) || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:214:47: note: Left side of '||' is true |
|
if ((sgs_ctx->sgs_state >= SGS_STATE_MAX) || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:216:7: note: Loop condition is false. Exiting loop |
|
OAILOG_ERROR( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:219:7: note: Returning zero |
|
return SGS_INVALID; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:135:13: note: Returning from 'sgs_fsm_get_status' |
|
state = sgs_fsm_get_status(sgs_evt->ue_id, sgs_ctx); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:135:5: note: The value 0 is assigned to 'state' |
|
state = sgs_fsm_get_status(sgs_evt->ue_id, sgs_ctx); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:136:5: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_fsm.c:142:10: note: Called function pointer is null (null dereference) |
|
rc = (sgs_fsm_handlers[state])(sgs_evt); |
|
^ |
|
5745 warnings generated. |
|
Suppressed 5744 warnings (5721 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_null.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_null.c:91:5: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case _SGS_EPS_DETACH_IND: { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_null.c:99:12: note: last of these clones ends here |
|
} break; |
|
^ |
|
4461 warnings generated. |
|
Suppressed 4460 warnings (4458 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_la_updated.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_la_updated.c:98:5: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case _SGS_EPS_DETACH_IND: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_la_updated.c:112:12: note: last of these clones ends here |
|
break; |
|
^ |
|
4461 warnings generated. |
|
Suppressed 4460 warnings (4458 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_associated.c |
|
11101 warnings generated. |
|
Suppressed 11101 warnings (11077 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c:166:29: warning: Access to field 'vlr_reliable' results in a dereference of a null pointer (loaded from variable 'sgs_context') [clang-analyzer-core.NullDereference] |
|
sgs_context->vlr_reliable = false; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c:152:7: note: Assuming 'fsm_evt' is not equal to NULL |
|
if (fsm_evt == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c:152:3: note: Taking false branch |
|
if (fsm_evt == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c:156:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c:160:3: note: 'sgs_context' initialized here |
|
sgs_context_t* sgs_context = (sgs_context_t*) fsm_evt->ctx; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c:161:7: note: Assuming 'sgs_context' is equal to NULL |
|
if (sgs_context == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c:161:3: note: Taking true branch |
|
if (sgs_context == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c:162:5: note: Loop condition is false. Exiting loop |
|
OAILOG_WARNING( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:421:3: note: expanded from macro 'OAILOG_WARNING' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_reset.c:166:29: note: Access to field 'vlr_reliable' results in a dereference of a null pointer (loaded from variable 'sgs_context') |
|
sgs_context->vlr_reliable = false; |
|
^ |
|
11105 warnings generated. |
|
Suppressed 11104 warnings (11080 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_alert.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_alert.c:91:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(sgsap_alert_req_pP->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
11406 warnings generated. |
|
Suppressed 11405 warnings (11381 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_service_abort.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap_service_abort.c:64:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(itti_sgsap_service_abort_req_p->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
11406 warnings generated. |
|
Suppressed 11405 warnings (11381 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_paging.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_paging.c:151:5: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64((char*) sgsap_paging_req_pP->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_paging.c:214:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64((char*) sgsap_paging_req_pP->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_paging.c:711:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(sgsap_paging_req_pP->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_paging.c:881:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(sgsap_paging_req_pP->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
11409 warnings generated. |
|
Suppressed 11405 warnings (11381 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgsap.c:73:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(sgsap_paging_req_pP->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
11406 warnings generated. |
|
Suppressed 11405 warnings (11381 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_apn_selection.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_apn_selection.c:155:15: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
strlen(ue_context->apn_config_profile.apn_configuration[index] |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_apn_selection.c:203:31: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
int imsi_prefix_len = strlen(imsi_prefix); |
|
^ |
|
6311 warnings generated. |
|
Suppressed 6309 warnings (6286 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_bearer_context.c |
|
5744 warnings generated. |
|
Suppressed 5744 warnings (5721 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_pdn_context.c |
|
11104 warnings generated. |
|
Suppressed 11104 warnings (11080 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_procedures.c |
|
11101 warnings generated. |
|
Suppressed 11101 warnings (11077 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:433:49: warning: Access to field 'mme_ue_s1ap_id' results in a dereference of a null pointer (loaded from variable 's1ap_e_rab_modification_cnf_p') [clang-analyzer-core.NullDereference] |
|
s1ap_e_rab_modification_cnf_p->mme_ue_s1ap_id = mme_ue_s1ap_id; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:423:3: note: 'message_p' initialized here |
|
MessageDef* message_p = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:425:7: note: Assuming 'message_p' is equal to NULL |
|
if (message_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:425:3: note: Taking true branch |
|
if (message_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:426:5: note: Loop condition is false. Exiting loop |
|
OAILOG_ERROR(LOG_MME_APP, "itti_alloc_new_message Failed\n"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:429:3: note: 's1ap_e_rab_modification_cnf_p' initialized to a null pointer value |
|
itti_s1ap_e_rab_modification_cnf_t* s1ap_e_rab_modification_cnf_p = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:433:49: note: Access to field 'mme_ue_s1ap_id' results in a dereference of a null pointer (loaded from variable 's1ap_e_rab_modification_cnf_p') |
|
s1ap_e_rab_modification_cnf_p->mme_ue_s1ap_id = mme_ue_s1ap_id; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:499:8: warning: Although the value stored to 'uetimezone' is used in the enclosing expression, the value is never actually read from 'uetimezone' [clang-analyzer-deadcode.DeadStores] |
|
if ((uetimezone = get_time_zone()) != RETURNerror) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:499:8: note: Although the value stored to 'uetimezone' is used in the enclosing expression, the value is never actually read from 'uetimezone' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:546:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(imsi, &message_p->ittiMsgHeader.imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:605:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(imsi, &message_p->ittiMsgHeader.imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_itti_messaging.c:648:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(imsi, &message_p->ittiMsgHeader.imsi); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
11413 warnings generated. |
|
Suppressed 11408 warnings (11384 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_edns_emulation.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_edns_emulation.c:59:54: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
obj_hashtable_insert(g_e_dns_entries, cid, strlen(cid), data); |
|
^ |
|
5304 warnings generated. |
|
Suppressed 5303 warnings (5301 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgw_selection.c |
|
5292 warnings generated. |
|
Suppressed 5292 warnings (5290 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_status.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_status.c:78:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(sgsap_status_pP->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_sgs_status.c:289:26: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
mme_app_stop_timer(ue_context_p->sgs_context->ts8_timer.id); |
|
^ |
|
11407 warnings generated. |
|
Suppressed 11405 warnings (11381 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_converter.cpp |
|
71594 warnings generated. |
|
Suppressed 71598 warnings (71594 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:59:3: warning: Call to virtual method 'MmeNasStateManager::free_state' during destruction bypasses virtual dispatch [clang-analyzer-optin.cplusplus.VirtualCall] |
|
free_state(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:59:3: note: Call to virtual method 'MmeNasStateManager::free_state' during destruction bypasses virtual dispatch |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:239:16: warning: Potential leak of memory pointed to by 'ue_context' [clang-analyzer-unix.Malloc] |
|
return RETURNerror; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:88:3: note: Assuming field 'is_initialized' is true |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:9: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:88:3: note: Taking false branch |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:88:3: note: Loop condition is false. Exiting loop |
|
AssertFatal( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:90:3: note: Assuming field 'state_cache_p' is non-null |
|
AssertFatal(state_cache_p, "mme_nas_state is NULL"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:9: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:90:3: note: Taking false branch |
|
AssertFatal(state_cache_p, "mme_nas_state is NULL"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:90:3: note: Loop condition is false. Exiting loop |
|
AssertFatal(state_cache_p, "mme_nas_state is NULL"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:91:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:95:7: note: Assuming field 'persist_state_enabled' is true |
|
if (persist_state_enabled && read_from_db) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:95:7: note: Left side of '&&' is true |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:95:32: note: Assuming 'read_from_db' is true |
|
if (persist_state_enabled && read_from_db) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:95:3: note: Taking true branch |
|
if (persist_state_enabled && read_from_db) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:97:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG(LOG_MME_APP, "Freeing up in-memory hashtables"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:100:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG(LOG_MME_APP, "Allocating memory for new hashtables"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:104:9: note: 'rc' is equal to RETURNok |
|
if (rc != RETURNok) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:104:5: note: Taking false branch |
|
if (rc != RETURNok) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:107:5: note: Calling 'MmeNasStateManager::read_ue_state_from_db' |
|
read_ue_state_from_db(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:231:7: note: Field 'persist_state_enabled' is true |
|
if (persist_state_enabled) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:231:3: note: Taking true branch |
|
if (persist_state_enabled) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:234:7: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG(log_task, "Reading UE state from db for %s", key.c_str()); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:237:31: note: Memory is allocated |
|
(ue_mm_context_t*) (calloc(1, sizeof(ue_mm_context_t))); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:238:11: note: Assuming the condition is true |
|
if (redis_client->read_proto(key, ue_proto) != RETURNok) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:238:7: note: Taking true branch |
|
if (redis_client->read_proto(key, ue_proto) != RETURNok) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state_manager.cpp:239:16: note: Potential leak of memory pointed to by 'ue_context' |
|
return RETURNerror; |
|
^ |
|
78218 warnings generated. |
|
Suppressed 78220 warnings (78216 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_state.cpp |
|
72796 warnings generated. |
|
Suppressed 72800 warnings (72796 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_events.cpp |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_events.cpp:35:13: warning: using decl 'Status' is unused [misc-unused-using-decls] |
|
using grpc::Status; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_events.cpp:35:13: note: remove the using |
|
using grpc::Status; |
|
~~~~~~~~~~~~^~~~~~~ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_events.cpp:39:21: warning: using decl 'Void' is unused [misc-unused-using-decls] |
|
using magma::orc8r::Void; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_events.cpp:39:21: note: remove the using |
|
using magma::orc8r::Void; |
|
~~~~~~~~~~~~~~~~~~~~^~~~~ |
|
118418 warnings generated. |
|
Suppressed 118420 warnings (118416 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_ha.cpp |
|
15807 warnings generated. |
|
Suppressed 15807 warnings (15807 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_timer_management.cpp |
|
/workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_timer_management.cpp:54:59: warning: narrowing conversion from 'long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
timer_expiry_handler(mme_app_task_zmq_ctx.event_loop, timer->id, NULL); |
|
^ |
|
36587 warnings generated. |
|
Suppressed 36586 warnings (36586 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/mme_app/mme_app_ip_imsi.cpp |
|
98214 warnings generated. |
|
Suppressed 98214 warnings (98214 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/mme_nas_state.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/mme_nas_state.pb.cc:4800:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/mme_nas_state.pb.cc:597:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fmme_5fnas_5fstate_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fmme_5fnas_5fstate_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fmme_5fnas_5fstate_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/mme_nas_state.pb.cc:3579:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(41, this->_internal_pdn_contexts(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/mme_nas_state.pb.cc:3587:64: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(42, this->_internal_bearer_contexts(i), target, stream); |
|
^ |
|
62652 warnings generated. |
|
Suppressed 62652 warnings (62648 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:25866:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:2784:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2fsession_5fmanager_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2fsession_5fmanager_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2fsession_5fmanager_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:4037:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_records(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:4186:52: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&common_context_)) + sizeof(rat_specific_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:4390:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(LocalCreateSessionRequest::rat_specific_context_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:5884:52: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&common_context_)) + sizeof(rat_specific_notification_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:6088:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SetSmNotificationContext::rat_specific_notification_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:9098:55: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&revalidation_time_)) + sizeof(qos_info_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:9317:64: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_rules_to_install(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:9325:72: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(7, this->_internal_dynamic_rules_to_install(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:9350:73: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(10, this->_internal_usage_monitoring_credits(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:9532:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(PolicyReAuthRequest::qos_info_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:10264:60: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_static_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:10272:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_dynamic_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:10528:56: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_rule_set(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:10739:68: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_rules_per_subscriber(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:11302:43: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&total_)) + sizeof(rx_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:11536:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(GrantedUnits::rx_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:15422:71: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(9, this->_internal_static_rules_to_install(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:15430:73: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(10, this->_internal_dynamic_rules_to_install(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:16300:53: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&access_timezone_)) + sizeof(rat_specific_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:16596:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(CreateSessionRequest::rat_specific_context_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:16672:46: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&tgpp_ctx_)) + sizeof(revalidation_time_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:16848:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_credits(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:16856:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_usage_monitors(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:16864:60: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(7, this->_internal_static_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:16872:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(8, this->_internal_dynamic_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:17069:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(CreateSessionResponse::revalidation_time_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:17141:53: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&activation_time_)) + sizeof(deactivation_time_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:17377:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(StaticRuleInstall::deactivation_time_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:17459:49: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&policy_rule_)) + sizeof(deactivation_time_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:17693:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(DynamicRuleInstall::deactivation_time_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:17830:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_updates(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:17838:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_usage_monitors(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:18062:57: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_responses(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:18070:71: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_usage_monitor_responses(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:18745:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_credit_usages(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:18753:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_monitor_usages(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:20006:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_identity_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:20943:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(12, this->_internal_ladn_service_area(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:21376:52: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&common_context_)) + sizeof(rat_specific_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:21580:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SetSMSessionContext::rat_specific_context_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:22260:68: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_authorized_qos_rules(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:22523:52: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&common_context_)) + sizeof(rat_specific_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:22727:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(SetSMSessionContextAccess::rat_specific_context_) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:23700:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_ip_resource_schema(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/lib/n11/lte/protos/session_manager.pb.cc:25763:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_upf_session_state(i), target, stream); |
|
^ |
|
63037 warnings generated. |
|
Suppressed 62994 warnings (62990 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:15288:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:1624:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fnas_5fstate_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fnas_5fstate_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fnas_5fstate_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:2284:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_tai_many_plmn(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:2587:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_partial_tai_lists(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:3591:54: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_vector(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:9123:63: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_emm_common_proc(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:9131:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_cn_proc(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:9153:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_nas_proc_mess_sign(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:12997:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_proto_or_container_id(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/nas_state.pb.cc:15869:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(23, this->_internal_vector(i), target, stream); |
|
^ |
|
62339 warnings generated. |
|
Suppressed 62333 warnings (62323 in non-user code, 4 NOLINT, 6 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/common_types.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/common_types.pb.cc:1773:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/common_types.pb.cc:251:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/common_types.pb.cc:1904:59: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_apn_configs(i), target, stream); |
|
^ |
|
61282 warnings generated. |
|
Suppressed 61283 warnings (61279 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/std_3gpp_types.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/std_3gpp_types.pb.cc:2422:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/std_3gpp_types.pb.cc:350:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fstd_5f3gpp_5ftypes_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fstd_5f3gpp_5ftypes_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fstd_5f3gpp_5ftypes_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/std_3gpp_types.pb.cc:476:58: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_parameters(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/std_3gpp_types.pb.cc:1018:60: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_pco_protocol(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/std_3gpp_types.pb.cc:2639:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_ipv4_remote_addresses(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/std_3gpp_types.pb.cc:2647:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_ipv6_remote_addresses(i), target, stream); |
|
^ |
|
61324 warnings generated. |
|
Suppressed 61322 warnings (61318 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_if_s1.c |
|
2 warnings generated. |
|
Suppressed 2 warnings (2 with check filters). |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_if_s6a.c |
|
2 warnings generated. |
|
Suppressed 2 warnings (2 with check filters). |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_network.c |
|
11101 warnings generated. |
|
Suppressed 11101 warnings (11077 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_proc.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_proc.c:348:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64((char*) aia->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_proc.c:370:8: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if ((aia->result.present == S6A_RESULT_BASE) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_proc.c:396:9: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
if (aia->result.present == S6A_RESULT_BASE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_proc.c:574:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(dl_unitdata->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_proc.c:657:41: warning: Value stored to 'cs_location_updt_fail' during its initialization is never read [clang-analyzer-deadcode.DeadStores] |
|
emm_cn_cs_domain_location_updt_fail_t cs_location_updt_fail = {0}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_proc.c:657:41: note: Value stored to 'cs_location_updt_fail' during its initialization is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_proc.c:687:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64(sgs_release_req->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
11744 warnings generated. |
|
Suppressed 11738 warnings (11712 in non-user code, 26 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_procedures.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_procedures.c:336:7: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case EMM_COMM_PROC_SMC: { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_procedures.c:341:14: note: last of these clones ends here |
|
} break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_procedures.c:597:52: warning: Result of 'calloc' is converted to a pointer of type 'nas_emm_specific_proc_t', which is incompatible with sizeof operand type 'nas_emm_attach_proc_t' [clang-analyzer-unix.MallocSizeof] |
|
emm_context->emm_procedures->emm_specific_proc = calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_procedures.c:597:52: note: Result of 'calloc' is converted to a pointer of type 'nas_emm_specific_proc_t', which is incompatible with sizeof operand type 'nas_emm_attach_proc_t' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_procedures.c:635:52: warning: Result of 'calloc' is converted to a pointer of type 'nas_emm_specific_proc_t', which is incompatible with sizeof operand type 'nas_emm_tau_proc_t' [clang-analyzer-unix.MallocSizeof] |
|
emm_context->emm_procedures->emm_specific_proc = calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_procedures.c:635:52: note: Result of 'calloc' is converted to a pointer of type 'nas_emm_specific_proc_t', which is incompatible with sizeof operand type 'nas_emm_tau_proc_t' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_procedures.c:670:52: warning: Result of 'calloc' is converted to a pointer of type 'nas_emm_con_mngt_proc_t', which is incompatible with sizeof operand type 'nas_sr_proc_t' [clang-analyzer-unix.MallocSizeof] |
|
emm_context->emm_procedures->emm_con_mngt_proc = calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_procedures.c:670:52: note: Result of 'calloc' is converted to a pointer of type 'nas_emm_con_mngt_proc_t', which is incompatible with sizeof operand type 'nas_sr_proc_t' |
|
6487 warnings generated. |
|
Suppressed 6483 warnings (6460 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:6570:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:711:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fspgw_5fstate_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fspgw_5fstate_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fspgw_5fstate_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:1100:67: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(22, this->_internal_pending_procedures(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:1480:67: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_pending_eps_bearers(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:2566:78: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(20, this->_internal_bearer_contexts_to_be_created(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:3630:64: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(15, this->_internal_eps_bearer_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:4913:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_create_new_tft(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:4921:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_add_packet_filter(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:4929:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_replace_packet_filter(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:5886:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_s11_bearer_context(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:6018:60: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&sgw_eps_bearer_context_)) + sizeof(pgw_eps_bearer_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/mme_app/lte/protos/oai/spgw_state.pb.cc:6222:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(S11BearerContext::pgw_eps_bearer_context_) |
|
^ |
|
61700 warnings generated. |
|
Suppressed 61692 warnings (61679 in non-user code, 4 NOLINT, 9 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:145:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
int offset = size - sizeof(uint8_t); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:267:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
int offset = size - sizeof(uint8_t); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:304:13: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
bytes = length - size; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:451:18: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
int offset = size - sizeof(uint8_t); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:562:20: warning: narrowing conversion from 'unsigned long' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
int offset = size - sizeof(uint8_t); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1442:7: warning: 7th function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage] |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:472:5: note: expanded from macro 'OAILOG_DEBUG' |
|
log_message( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:250:7: note: 'size' is >= 0 |
|
if (size < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:250:3: note: Taking false branch |
|
if (size < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:253:14: note: 'size' is > 1 |
|
} else if (size > 1) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:253:10: note: Taking true branch |
|
} else if (size > 1) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:254:9: note: Assuming 'emm_security_context' is non-null |
|
if (emm_security_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:254:5: note: Taking true branch |
|
if (emm_security_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:257:11: note: Assuming field 'seq_num' is <= field 'sequence_number' |
|
if (emm_security_context->ul_count.seq_num > header->sequence_number) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:257:7: note: Taking false branch |
|
if (emm_security_context->ul_count.seq_num > header->sequence_number) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:272:20: note: Calling 'nas_message_get_mac' |
|
uint32_t mac = nas_message_get_mac( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1399:8: note: 'emm_security_context' is non-null |
|
if (!emm_security_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1399:3: note: Taking false branch |
|
if (!emm_security_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1406:3: note: Control jumps to 'case 1:' at line 1407 |
|
switch (emm_security_context->selected_algorithms.integrity) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1413:11: note: 'direction' is equal to SECU_DIRECTION_UPLINK |
|
if (direction == SECU_DIRECTION_UPLINK) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1413:7: note: Taking true branch |
|
if (direction == SECU_DIRECTION_UPLINK) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1426:12: note: 'direction' is equal to 0 |
|
(direction == SECU_DIRECTION_UPLINK) ? "UPLINK" : "DOWNLINK", |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:473:64: note: expanded from macro 'OAILOG_DEBUG' |
|
NULL, OAILOG_LEVEL_DEBUG, pRoTo, __FILE__, __LINE__, ##__VA_ARGS__); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1426:11: note: '?' condition is true |
|
(direction == SECU_DIRECTION_UPLINK) ? "UPLINK" : "DOWNLINK", |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1427:12: note: 'direction' is equal to 0 |
|
(direction == SECU_DIRECTION_UPLINK) ? |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:473:64: note: expanded from macro 'OAILOG_DEBUG' |
|
NULL, OAILOG_LEVEL_DEBUG, pRoTo, __FILE__, __LINE__, ##__VA_ARGS__); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1427:11: note: '?' condition is true |
|
(direction == SECU_DIRECTION_UPLINK) ? |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1423:7: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1442:7: note: 7th function call argument is an uninitialized value |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:472:5: note: expanded from macro 'OAILOG_DEBUG' |
|
log_message( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1488:7: warning: 7th function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage] |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:472:5: note: expanded from macro 'OAILOG_DEBUG' |
|
log_message( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:250:7: note: 'size' is >= 0 |
|
if (size < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:250:3: note: Taking false branch |
|
if (size < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:253:14: note: 'size' is > 1 |
|
} else if (size > 1) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:253:10: note: Taking true branch |
|
} else if (size > 1) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:254:9: note: Assuming 'emm_security_context' is non-null |
|
if (emm_security_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:254:5: note: Taking true branch |
|
if (emm_security_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:257:11: note: Assuming field 'seq_num' is <= field 'sequence_number' |
|
if (emm_security_context->ul_count.seq_num > header->sequence_number) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:257:7: note: Taking false branch |
|
if (emm_security_context->ul_count.seq_num > header->sequence_number) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:272:20: note: Calling 'nas_message_get_mac' |
|
uint32_t mac = nas_message_get_mac( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1399:8: note: 'emm_security_context' is non-null |
|
if (!emm_security_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1399:3: note: Taking false branch |
|
if (!emm_security_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1406:3: note: Control jumps to 'case 2:' at line 1453 |
|
switch (emm_security_context->selected_algorithms.integrity) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1459:11: note: 'direction' is equal to SECU_DIRECTION_UPLINK |
|
if (direction == SECU_DIRECTION_UPLINK) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1459:7: note: Taking true branch |
|
if (direction == SECU_DIRECTION_UPLINK) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1472:12: note: 'direction' is equal to 0 |
|
(direction == SECU_DIRECTION_UPLINK) ? "UPLINK" : "DOWNLINK", |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:473:64: note: expanded from macro 'OAILOG_DEBUG' |
|
NULL, OAILOG_LEVEL_DEBUG, pRoTo, __FILE__, __LINE__, ##__VA_ARGS__); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1472:11: note: '?' condition is true |
|
(direction == SECU_DIRECTION_UPLINK) ? "UPLINK" : "DOWNLINK", |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1473:12: note: 'direction' is equal to 0 |
|
(direction == SECU_DIRECTION_UPLINK) ? |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:473:64: note: expanded from macro 'OAILOG_DEBUG' |
|
NULL, OAILOG_LEVEL_DEBUG, pRoTo, __FILE__, __LINE__, ##__VA_ARGS__); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1473:11: note: '?' condition is true |
|
(direction == SECU_DIRECTION_UPLINK) ? |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1469:7: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/network/nas_message.c:1488:7: note: 7th function call argument is an uninitialized value |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:472:5: note: expanded from macro 'OAILOG_DEBUG' |
|
log_message( \ |
|
^ |
|
5787 warnings generated. |
|
Suppressed 5780 warnings (5778 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:852:38: warning: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'state_emm_detach_request_ies') [clang-analyzer-core.NullDereference] |
|
state_emm_detach_request_ies->type = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1733:3: note: Taking true branch |
|
if (emm_context_proto.has_emm_procedures()) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1734:5: note: Calling 'NasStateConverter::proto_to_emm_procedures' |
|
proto_to_emm_procedures( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1451:3: note: Loop condition is false. Exiting loop |
|
LIST_INIT(&state_emm_procedures->emm_common_procs); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/queue.h:120:3: note: expanded from macro 'LIST_INIT' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1452:3: note: Calling 'NasStateConverter::proto_to_emm_specific_proc' |
|
proto_to_emm_specific_proc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1130:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG(LOG_MME_APP, "Reading specific procs from proto"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1132:3: note: Control jumps to 'case kDetachProc:' at line 1151 |
|
switch (proto_emm_proc_with_type.MessageTypes_case()) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1153:60: note: Null pointer value stored to field 'ies' |
|
->emm_specific_proc = (nas_emm_specific_proc_t*) calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1164:51: note: Passing null pointer value via 2nd parameter 'state_emm_detach_request_ies' |
|
proto_emm_proc_with_type.detach_proc(), detach_proc->ies); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1163:7: note: Calling 'NasStateConverter::proto_to_emm_detach_request_ies' |
|
proto_to_emm_detach_request_ies( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:852:38: note: Access to field 'type' results in a dereference of a null pointer (loaded from variable 'state_emm_detach_request_ies') |
|
state_emm_detach_request_ies->type = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1136:60: warning: Result of 'calloc' is converted to a pointer of type 'nas_emm_specific_proc_t', which is incompatible with sizeof operand type 'nas_emm_attach_proc_t' [clang-analyzer-unix.MallocSizeof] |
|
->emm_specific_proc = (nas_emm_specific_proc_t*) calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1136:60: note: Result of 'calloc' is converted to a pointer of type 'nas_emm_specific_proc_t', which is incompatible with sizeof operand type 'nas_emm_attach_proc_t' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1153:60: warning: Result of 'calloc' is converted to a pointer of type 'nas_emm_specific_proc_t', which is incompatible with sizeof operand type 'nas_emm_detach_proc_t' [clang-analyzer-unix.MallocSizeof] |
|
->emm_specific_proc = (nas_emm_specific_proc_t*) calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1153:60: note: Result of 'calloc' is converted to a pointer of type 'nas_emm_specific_proc_t', which is incompatible with sizeof operand type 'nas_emm_detach_proc_t' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1268:5: warning: undefined behavior, destination object type 'std::string' (aka 'basic_string<char>') is not TriviallyCopyable [bugprone-undefined-memory-manipulation] |
|
memcpy( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1271:5: warning: undefined behavior, destination object type 'std::string' (aka 'basic_string<char>') is not TriviallyCopyable [bugprone-undefined-memory-manipulation] |
|
memcpy( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1274:5: warning: undefined behavior, destination object type 'std::string' (aka 'basic_string<char>') is not TriviallyCopyable [bugprone-undefined-memory-manipulation] |
|
memcpy( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/nas_state_converter.cpp:1277:5: warning: undefined behavior, destination object type 'std::string' (aka 'basic_string<char>') is not TriviallyCopyable [bugprone-undefined-memory-manipulation] |
|
memcpy( |
|
^ |
|
71316 warnings generated. |
|
Suppressed 71313 warnings (71309 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/api/mme/mme_api.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/api/mme/mme_api.c:617:19: warning: rand() has limited randomness [cert-msc30-c,cert-msc50-cpp] |
|
return (tmsi_t) rand(); |
|
^ |
|
6690 warnings generated. |
|
Suppressed 6688 warnings (6665 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AttachComplete.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AttachReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AttachAccept.c |
|
4333 warnings generated. |
|
Suppressed 4333 warnings (4331 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AuthenticationFailure.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AuthenticationReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AuthenticationRequest.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AuthenticationResponse.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/CsServiceNotification.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/DetachAccept.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/DetachRequest.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/DownlinkNasTransport.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AttachRequest.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AttachRequest.c:41:8: warning: Although the value stored to 'decoded_result' is used in the enclosing expression, the value is never actually read from 'decoded_result' [clang-analyzer-deadcode.DeadStores] |
|
if ((decoded_result = decode_u8_eps_attach_type( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AttachRequest.c:41:8: note: Although the value stored to 'decoded_result' is used in the enclosing expression, the value is never actually read from 'decoded_result' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AttachRequest.c:47:8: warning: Although the value stored to 'decoded_result' is used in the enclosing expression, the value is never actually read from 'decoded_result' [clang-analyzer-deadcode.DeadStores] |
|
if ((decoded_result = decode_u8_nas_key_set_identifier( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/AttachRequest.c:47:8: note: Although the value stored to 'decoded_result' is used in the enclosing expression, the value is never actually read from 'decoded_result' |
|
4335 warnings generated. |
|
Suppressed 4333 warnings (4331 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/emm_msg.c |
|
5445 warnings generated. |
|
Suppressed 5445 warnings (5443 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/EmmStatus.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/EmmInformation.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/ExtendedServiceRequest.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/GutiReallocationCommand.c |
|
4333 warnings generated. |
|
Suppressed 4333 warnings (4331 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/GutiReallocationComplete.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/IdentityRequest.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/IdentityResponse.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/SecurityModeComplete.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/SecurityModeCommand.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/SecurityModeReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/ServiceReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/ServiceRequest.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/TrackingAreaUpdateComplete.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/TrackingAreaUpdateReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/TrackingAreaUpdateAccept.c |
|
4333 warnings generated. |
|
Suppressed 4333 warnings (4331 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/UplinkNasTransport.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/ActivateDedicatedEpsBearerContextAccept.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/ActivateDedicatedEpsBearerContextReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/msg/TrackingAreaUpdateRequest.c |
|
4333 warnings generated. |
|
Suppressed 4333 warnings (4331 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/ActivateDefaultEpsBearerContextAccept.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/ActivateDefaultEpsBearerContextReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/ActivateDedicatedEpsBearerContextRequest.c |
|
4482 warnings generated. |
|
Suppressed 4482 warnings (4480 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/BearerResourceAllocationReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/BearerResourceAllocationRequest.c |
|
4482 warnings generated. |
|
Suppressed 4482 warnings (4480 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/BearerResourceModificationReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/BearerResourceModificationRequest.c |
|
4482 warnings generated. |
|
Suppressed 4482 warnings (4480 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/DeactivateEpsBearerContextAccept.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/DeactivateEpsBearerContextRequest.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/EsmInformationRequest.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/EsmInformationResponse.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/ActivateDefaultEpsBearerContextRequest.c |
|
4482 warnings generated. |
|
Suppressed 4482 warnings (4480 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/EsmStatus.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/esm_msg.c |
|
4728 warnings generated. |
|
Suppressed 4728 warnings (4726 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/ModifyEpsBearerContextAccept.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/ModifyEpsBearerContextReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/PdnConnectivityReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/PdnConnectivityRequest.c |
|
4482 warnings generated. |
|
Suppressed 4482 warnings (4480 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/PdnDisconnectReject.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/PdnDisconnectRequest.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/AdditionalUpdateResult.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/AdditionalUpdateType.c |
|
728 warnings generated. |
|
Suppressed 728 warnings (726 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/ApnAggregateMaximumBitRate.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/Cli.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/msg/ModifyEpsBearerContextRequest.c |
|
4482 warnings generated. |
|
Suppressed 4482 warnings (4480 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/CsfbResponse.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/DetachType.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EmmCause.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EpsAttachType.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EpsAttachResult.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EpsBearerContextStatus.c |
|
4316 warnings generated. |
|
Suppressed 4316 warnings (4314 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EpsMobileIdentity.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EpsMobileIdentity.c:116:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
return (encoded + encoded_rc); |
|
^ |
|
4314 warnings generated. |
|
Suppressed 4313 warnings (4311 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EpsNetworkFeatureSupport.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EpsUpdateResult.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EpsUpdateType.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EsmCause.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EsmInformationTransferFlag.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EpsQualityOfService.c |
|
4482 warnings generated. |
|
Suppressed 4482 warnings (4480 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/EsmMessageContainer.c |
|
4316 warnings generated. |
|
Suppressed 4316 warnings (4314 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/GutiType.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/KsiAndSequenceNumber.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/LcsClientIdentity.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/LcsIndicator.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/MessageType.c |
|
728 warnings generated. |
|
Suppressed 728 warnings (726 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/LinkedEpsBearerIdentity.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/NasKeySetIdentifier.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/NasMessageContainer.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/NasRequestType.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/NasSecurityAlgorithms.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/Nonce.c |
|
4316 warnings generated. |
|
Suppressed 4316 warnings (4314 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/PagingIdentity.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/PdnAddress.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/PdnType.c |
|
4482 warnings generated. |
|
Suppressed 4482 warnings (4480 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/SecurityHeaderType.c |
|
728 warnings generated. |
|
Suppressed 728 warnings (726 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/RadioPriority.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/ServiceType.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/ShortMac.c |
|
4316 warnings generated. |
|
Suppressed 4316 warnings (4314 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/SsCode.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/SupportedCodecList.c |
|
4316 warnings generated. |
|
Suppressed 4316 warnings (4314 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/TrackingAreaIdentity.c |
|
4330 warnings generated. |
|
Suppressed 4330 warnings (4328 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/UeAdditionalSecurityCapability.c |
|
5171 warnings generated. |
|
Suppressed 5171 warnings (5169 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/UeNetworkCapability.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/UeRadioCapabilityInformationUpdateNeeded.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/UeSecurityCapability.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/NrUeSecurityCapability.c |
|
4319 warnings generated. |
|
Suppressed 4319 warnings (4317 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/util/nas_timer.c |
|
10544 warnings generated. |
|
Suppressed 10544 warnings (10521 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/ies/TrackingAreaIdentityList.c |
|
4330 warnings generated. |
|
Suppressed 4330 warnings (4328 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:497:9: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = emm_sap_send(&emm_sap); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:497:9: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:615:5: warning: Value stored to 'emm_cause' is never read [clang-analyzer-deadcode.DeadStores] |
|
emm_cause = EMM_CAUSE_ILLEGAL_UE; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:615:5: note: Value stored to 'emm_cause' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:708:15: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = emm_sap_send(&emm_sap); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:708:15: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:790:13: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = emm_sap_send(&emm_sap); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:790:13: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:1155:11: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare] |
|
if (memcmp( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:1177:9: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = emm_sap_send(&emm_sap); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:1177:9: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Authentication.c:1517:72: warning: expression is redundant [misc-redundant-expression] |
|
if (!(auth_info_req->imsi_length > 5) && (auth_info_req->imsi_length < 16)) { |
|
^ |
|
11503 warnings generated. |
|
Suppressed 11496 warnings (11472 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:123:26: warning: Access to field 't3422_arg' results in a dereference of a null pointer (loaded from variable 'emm_ctx') [clang-analyzer-core.NullDereference] |
|
emm_ctx->t3422_arg = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:92:7: note: Assuming 'data' is non-null |
|
if (!data) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:92:3: note: Taking false branch |
|
if (!data) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:103:3: note: 'emm_ctx' initialized here |
|
emm_context_t* emm_ctx = emm_context_get(&_emm_data, ue_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:104:7: note: Assuming 'emm_ctx' is null |
|
if (emm_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:104:3: note: Taking false branch |
|
if (emm_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:109:3: note: Loop condition is false. Exiting loop |
|
OAILOG_WARNING( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:421:3: note: expanded from macro 'OAILOG_WARNING' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:115:7: note: Assuming field 'retransmission_count' is >= DETACH_REQ_COUNTER_MAX |
|
if (data->retransmission_count < DETACH_REQ_COUNTER_MAX) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:115:3: note: Taking false branch |
|
if (data->retransmission_count < DETACH_REQ_COUNTER_MAX) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:120:9: note: 'data' is non-null |
|
if (data) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:120:5: note: Taking true branch |
|
if (data) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:123:26: note: Access to field 't3422_arg' results in a dereference of a null pointer (loaded from variable 'emm_ctx') |
|
emm_ctx->t3422_arg = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:411:5: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = emm_sap_send(&emm_sap); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Detach.c:411:5: note: Value stored to 'rc' is never read |
|
11209 warnings generated. |
|
Suppressed 11207 warnings (11183 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/EmmInformation.c |
|
5825 warnings generated. |
|
Suppressed 5825 warnings (5802 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/emm_data_ctx.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/emm_data_ctx.c:726:3: warning: Value stored to 'h_rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
h_rc = hashtable_uint64_ts_remove( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/emm_data_ctx.c:726:3: note: Value stored to 'h_rc' is never read |
|
6686 warnings generated. |
|
Suppressed 6685 warnings (6662 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/emm_main.c |
|
5483 warnings generated. |
|
Suppressed 5483 warnings (5481 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/EmmStatusHdl.c |
|
6134 warnings generated. |
|
Suppressed 6134 warnings (6111 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:377:13: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = emm_sap_send(&emm_sap); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:377:13: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:380:13: warning: Value stored to 'clear_emm_ctxt' is never read [clang-analyzer-deadcode.DeadStores] |
|
clear_emm_ctxt = true; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:380:13: note: Value stored to 'clear_emm_ctxt' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:658:7: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = _emm_attach_reject(emm_ctx, (struct nas_base_proc_s*) attach_proc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:658:7: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1662:28: warning: Access to field 'emm_cause' results in a dereference of a null pointer (loaded from variable 'attach_proc') [clang-analyzer-core.NullDereference] |
|
attach_proc->emm_cause = EMM_CAUSE_PROTOCOL_ERROR; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1404:7: note: Assuming 'emm_context' is non-null |
|
if (!emm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1404:3: note: Taking false branch |
|
if (!emm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1412:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO_UE( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:598:3: note: expanded from macro 'OAILOG_INFO_UE' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1418:7: note: Assuming 'attach_proc' is non-null |
|
if (attach_proc) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1418:3: note: Taking true branch |
|
if (attach_proc) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1419:10: note: Calling 'emm_attach' |
|
rc = emm_attach(emm_context); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1598:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1602:3: note: 'attach_proc' initialized here |
|
nas_emm_attach_proc_t* attach_proc = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1605:7: note: Assuming 'attach_proc' is null |
|
if (attach_proc) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1605:3: note: Taking false branch |
|
if (attach_proc) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1653:7: note: 'rc' is not equal to RETURNok |
|
if (rc != RETURNok) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1653:3: note: Taking true branch |
|
if (rc != RETURNok) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1657:5: note: Loop condition is false. Exiting loop |
|
OAILOG_ERROR( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1662:28: note: Access to field 'emm_cause' results in a dereference of a null pointer (loaded from variable 'attach_proc') |
|
attach_proc->emm_cause = EMM_CAUSE_PROTOCOL_ERROR; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1919:44: warning: Access to field 'esm_msg_out' results in a dereference of a null pointer (loaded from variable 'attach_proc') [clang-analyzer-core.NullDereference] |
|
emm_sap.u.emm_as.u.establish.nas_msg = attach_proc->esm_msg_out; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1751:10: note: Calling 'emm_send_attach_accept' |
|
return emm_send_attach_accept(emm_context); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1773:7: note: Assuming 'emm_context' is non-null |
|
if (emm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1773:3: note: Taking true branch |
|
if (emm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1775:5: note: 'attach_proc' initialized here |
|
nas_emm_attach_proc_t* attach_proc = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1781:9: note: Assuming 'attach_proc' is null |
|
if (attach_proc) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1781:9: note: Assuming pointer value is null |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1781:5: note: Taking false branch |
|
if (attach_proc) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1851:10: note: Assuming the condition is false |
|
if (!IS_EMM_CTXT_VALID_GUTI(emm_context) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/emm_data.h:342:5: note: expanded from macro 'IS_EMM_CTXT_VALID_GUTI' |
|
(!!((eMmCtXtPtR)->member_valid_mask & EMM_CTXT_MEMBER_GUTI)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1851:46: note: Left side of '&&' is false |
|
if (!IS_EMM_CTXT_VALID_GUTI(emm_context) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1866:46: note: Left side of '&&' is false |
|
!IS_EMM_CTXT_VALID_GUTI(emm_context) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1882:5: note: Loop condition is false. Exiting loop |
|
REQUIREMENT_3GPP_24_301(R10_5_5_1_2_4__14); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/include/3gpp_requirements_24.301.h:44:3: note: expanded from macro 'REQUIREMENT_3GPP_24_301' |
|
REQUIREMENT_3GPP_SPEC( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_requirements.h:41:43: note: expanded from macro 'REQUIREMENT_3GPP_SPEC' |
|
#define REQUIREMENT_3GPP_SPEC(pRoTo, sTr) OAILOG_SPEC(pRoTo, sTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:394:3: note: expanded from macro 'OAILOG_SPEC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1905:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1910:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:1919:44: note: Access to field 'esm_msg_out' results in a dereference of a null pointer (loaded from variable 'attach_proc') |
|
emm_sap.u.emm_as.u.establish.nas_msg = attach_proc->esm_msg_out; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:2191:9: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare] |
|
if (memcmp(ies1->guti, ies2->guti, sizeof(*ies1->guti))) { |
|
^ |
|
!= 0 |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:2227:9: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare] |
|
if (memcmp(ies1->guti, ies2->guti, sizeof(*ies1->guti))) { |
|
^ |
|
!= 0 |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Attach.c:2382:7: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare] |
|
if (memcmp( |
|
^ |
|
11507 warnings generated. |
|
Suppressed 11499 warnings (11475 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:445:44: warning: Access to field 'ue_id' results in a dereference of a null pointer (loaded from variable 'proc') [clang-analyzer-core.NullDereference] |
|
mme_ue_context_exists_mme_ue_s1ap_id(proc->ue_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:118:7: note: Assuming 'emm_context' is non-null |
|
if ((emm_context) && ((EMM_DEREGISTERED == emm_context->_emm_fsm_state) || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:118:7: note: Left side of '&&' is true |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:118:26: note: Assuming EMM_DEREGISTERED is equal to field '_emm_fsm_state' |
|
if ((emm_context) && ((EMM_DEREGISTERED == emm_context->_emm_fsm_state) || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:118:75: note: Left side of '||' is true |
|
if ((emm_context) && ((EMM_DEREGISTERED == emm_context->_emm_fsm_state) || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:120:5: note: Loop condition is false. Exiting loop |
|
REQUIREMENT_3GPP_24_301(R10_5_4_4_1); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/include/3gpp_requirements_24.301.h:44:3: note: expanded from macro 'REQUIREMENT_3GPP_24_301' |
|
REQUIREMENT_3GPP_SPEC( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_requirements.h:41:43: note: expanded from macro 'REQUIREMENT_3GPP_SPEC' |
|
#define REQUIREMENT_3GPP_SPEC(pRoTo, sTr) OAILOG_SPEC(pRoTo, sTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:394:3: note: expanded from macro 'OAILOG_SPEC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:125:5: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:131:5: note: 'ident_proc' initialized here |
|
nas_emm_ident_proc_t* ident_proc = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:133:9: note: Assuming 'ident_proc' is null |
|
if (ident_proc) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:133:5: note: Taking false branch |
|
if (ident_proc) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:161:33: note: Passing null pointer value via 1st parameter 'proc' |
|
rc = identification_request(ident_proc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:161:10: note: Calling 'identification_request' |
|
rc = identification_request(ident_proc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/Identification.c:445:44: note: Access to field 'ue_id' results in a dereference of a null pointer (loaded from variable 'proc') |
|
mme_ue_context_exists_mme_ue_s1ap_id(proc->ue_id); |
|
^ |
|
11497 warnings generated. |
|
Suppressed 11496 warnings (11472 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/LowerLayer.c |
|
5834 warnings generated. |
|
Suppressed 5834 warnings (5811 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/ServiceRequestHdl.c |
|
11489 warnings generated. |
|
Suppressed 11489 warnings (11465 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/SecurityModeControl.c |
|
11496 warnings generated. |
|
Suppressed 11496 warnings (11472 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/TrackingAreaUpdate.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/TrackingAreaUpdate.c:210:9: warning: Value stored to 'emm_context' is never read [clang-analyzer-deadcode.DeadStores] |
|
emm_context = &ue_mm_context->emm_context; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/TrackingAreaUpdate.c:210:9: note: Value stored to 'emm_context' is never read |
|
11499 warnings generated. |
|
Suppressed 11498 warnings (11472 in non-user code, 26 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/NasTransportHdl.c |
|
11408 warnings generated. |
|
Suppressed 11408 warnings (11384 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/EmmCommon.c |
|
5904 warnings generated. |
|
Suppressed 5904 warnings (5902 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_cn.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_cn.c:647:12: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare] |
|
(memcmp( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_cn.c:687:5: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case CAUSE_CONTEXT_NOT_FOUND: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_cn.c:692:12: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_cn.c:831:10: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare] |
|
(memcmp( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_cn.c:959:12: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare] |
|
(memcmp( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_cn.c:1006:3: warning: 'sscanf' used to convert a string to an unsigned integer value, but function will not report conversion errors; consider using 'strtoul' instead [cert-err34-c] |
|
IMSI_STRING_TO_IMSI64((char*) mm_information_req_pP->imsi, &imsi64); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:440:3: note: expanded from macro 'IMSI_STRING_TO_IMSI64' |
|
sscanf(sTRING, IMSI_64_FMT, iMSI64_pTr) |
|
^ |
|
11503 warnings generated. |
|
Suppressed 11498 warnings (11474 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:101:11: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = nas_unlink_procedures( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:101:11: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:152:11: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = nas_unlink_procedures( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:152:11: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:302:13: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = (*emm_proc->delivered)(emm_ctx, emm_proc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:302:13: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:316:13: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = (*emm_proc->not_delivered)(emm_ctx, emm_proc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:316:13: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:335:13: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = (*emm_proc->not_delivered_ho)(emm_ctx, emm_proc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmCommonProcedureInitiated.c:335:13: note: Value stored to 'rc' is never read |
|
5536 warnings generated. |
|
Suppressed 5531 warnings (5529 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregistered.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregistered.c:135:9: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = (*evt->u.attach.proc->emm_spec_proc.emm_proc.base_proc |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregistered.c:135:9: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregistered.c:270:13: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = (*emm_proc->delivered)(emm_ctx, emm_proc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregistered.c:270:13: note: Value stored to 'rc' is never read |
|
5533 warnings generated. |
|
Suppressed 5531 warnings (5529 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:223:37: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
if (rc == TLV_BUFFER_TOO_SHORT) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:225:6: note: end of the original |
|
} |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:230:48: note: clone 1 starts here |
|
else if (rc == TLV_PROTOCOL_NOT_SUPPORTED) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:484:11: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
if (emm_ctx->csfbparams.newTmsiAllocated) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:303:7: note: Assuming 'decode_status' is null |
|
if (decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:303:3: note: Taking false branch |
|
if (decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:313:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:318:8: note: 'decode_status' is null |
|
if (!decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:318:3: note: Taking true branch |
|
if (!decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:325:3: note: 'emm_ctx' initialized to a null pointer value |
|
emm_context_t* emm_ctx = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:327:7: note: Assuming 'ue_mm_context' is null |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:327:3: note: Taking false branch |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:335:5: note: Loop condition is false. Exiting loop |
|
OAILOG_WARNING( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:421:3: note: expanded from macro 'OAILOG_WARNING' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:347:7: note: Assuming 'decoder_rc' is >= 0 |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:347:3: note: Taking false branch |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:364:3: note: Control jumps to 'case 74:' at line 468 |
|
switch (emm_msg->header.message_type) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:469:7: note: Loop condition is false. Exiting loop |
|
REQUIREMENT_3GPP_24_301(R10_4_4_4_3__1); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/include/3gpp_requirements_24.301.h:44:3: note: expanded from macro 'REQUIREMENT_3GPP_24_301' |
|
REQUIREMENT_3GPP_SPEC( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_requirements.h:41:43: note: expanded from macro 'REQUIREMENT_3GPP_SPEC' |
|
#define REQUIREMENT_3GPP_SPEC(pRoTo, sTr) OAILOG_SPEC(pRoTo, sTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:394:3: note: expanded from macro 'OAILOG_SPEC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:470:12: note: Assuming 0 is not equal to field 'security_context_available' |
|
if ((0 == decode_status->security_context_available) || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:470:11: note: Left side of '||' is false |
|
if ((0 == decode_status->security_context_available) || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:471:12: note: Assuming 0 is not equal to field 'integrity_protected_message' |
|
(0 == decode_status->integrity_protected_message) || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:470:11: note: Left side of '||' is false |
|
if ((0 == decode_status->security_context_available) || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:473:13: note: Assuming 1 is not equal to field 'security_context_available' |
|
((1 == decode_status->security_context_available) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:473:61: note: Left side of '&&' is false |
|
((1 == decode_status->security_context_available) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:484:11: note: Dereference of null pointer |
|
if (emm_ctx->csfbparams.newTmsiAllocated) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:524:16: warning: Access to field 'activated' results in a dereference of a null pointer (loaded from variable 'emm_security_context') [clang-analyzer-core.NullDereference] |
|
(0 < emm_security_context->activated) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:300:3: note: 'emm_security_context' initialized to a null pointer value |
|
emm_security_context_t* emm_security_context = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:303:7: note: Assuming 'decode_status' is null |
|
if (decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:303:3: note: Taking false branch |
|
if (decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:313:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:318:8: note: 'decode_status' is null |
|
if (!decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:318:3: note: Taking true branch |
|
if (!decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:327:7: note: Assuming 'ue_mm_context' is null |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:327:3: note: Taking false branch |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:335:5: note: Loop condition is false. Exiting loop |
|
OAILOG_WARNING( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:421:3: note: expanded from macro 'OAILOG_WARNING' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:347:7: note: Assuming 'decoder_rc' is >= 0 |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:347:3: note: Taking false branch |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:364:3: note: Control jumps to 'case 69:' at line 520 |
|
switch (emm_msg->header.message_type) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:521:7: note: Loop condition is false. Exiting loop |
|
REQUIREMENT_3GPP_24_301(R10_4_4_4_3__1); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/include/3gpp_requirements_24.301.h:44:3: note: expanded from macro 'REQUIREMENT_3GPP_24_301' |
|
REQUIREMENT_3GPP_SPEC( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_requirements.h:41:43: note: expanded from macro 'REQUIREMENT_3GPP_SPEC' |
|
#define REQUIREMENT_3GPP_SPEC(pRoTo, sTr) OAILOG_SPEC(pRoTo, sTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:394:3: note: expanded from macro 'OAILOG_SPEC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:522:7: note: Loop condition is false. Exiting loop |
|
REQUIREMENT_3GPP_24_301(R10_4_4_4_3__2); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/include/3gpp_requirements_24.301.h:44:3: note: expanded from macro 'REQUIREMENT_3GPP_24_301' |
|
REQUIREMENT_3GPP_SPEC( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_requirements.h:41:43: note: expanded from macro 'REQUIREMENT_3GPP_SPEC' |
|
#define REQUIREMENT_3GPP_SPEC(pRoTo, sTr) OAILOG_SPEC(pRoTo, sTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:394:3: note: expanded from macro 'OAILOG_SPEC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:523:12: note: Assuming 1 is equal to field 'security_context_available' |
|
if ((1 == decode_status->security_context_available) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:523:11: note: Left side of '&&' is true |
|
if ((1 == decode_status->security_context_available) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:524:16: note: Access to field 'activated' results in a dereference of a null pointer (loaded from variable 'emm_security_context') |
|
(0 < emm_security_context->activated) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:538:16: warning: Access to field 'activated' results in a dereference of a null pointer (loaded from variable 'emm_security_context') [clang-analyzer-core.NullDereference] |
|
(0 < emm_security_context->activated) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:300:3: note: 'emm_security_context' initialized to a null pointer value |
|
emm_security_context_t* emm_security_context = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:303:7: note: Assuming 'decode_status' is null |
|
if (decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:303:3: note: Taking false branch |
|
if (decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:313:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:318:8: note: 'decode_status' is null |
|
if (!decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:318:3: note: Taking true branch |
|
if (!decode_status) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:327:7: note: Assuming 'ue_mm_context' is null |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:327:3: note: Taking false branch |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:335:5: note: Loop condition is false. Exiting loop |
|
OAILOG_WARNING( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:421:3: note: expanded from macro 'OAILOG_WARNING' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:347:7: note: Assuming 'decoder_rc' is >= 0 |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:347:3: note: Taking false branch |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:364:3: note: Control jumps to 'case 70:' at line 534 |
|
switch (emm_msg->header.message_type) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:535:7: note: Loop condition is false. Exiting loop |
|
REQUIREMENT_3GPP_24_301(R10_4_4_4_3__1); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/include/3gpp_requirements_24.301.h:44:3: note: expanded from macro 'REQUIREMENT_3GPP_24_301' |
|
REQUIREMENT_3GPP_SPEC( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_requirements.h:41:43: note: expanded from macro 'REQUIREMENT_3GPP_SPEC' |
|
#define REQUIREMENT_3GPP_SPEC(pRoTo, sTr) OAILOG_SPEC(pRoTo, sTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:394:3: note: expanded from macro 'OAILOG_SPEC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:536:7: note: Loop condition is false. Exiting loop |
|
REQUIREMENT_3GPP_24_301(R10_4_4_4_3__2); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/include/3gpp_requirements_24.301.h:44:3: note: expanded from macro 'REQUIREMENT_3GPP_24_301' |
|
REQUIREMENT_3GPP_SPEC( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_requirements.h:41:43: note: expanded from macro 'REQUIREMENT_3GPP_SPEC' |
|
#define REQUIREMENT_3GPP_SPEC(pRoTo, sTr) OAILOG_SPEC(pRoTo, sTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:394:3: note: expanded from macro 'OAILOG_SPEC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:537:12: note: Assuming 1 is equal to field 'security_context_available' |
|
if ((1 == decode_status->security_context_available) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:537:11: note: Left side of '&&' is true |
|
if ((1 == decode_status->security_context_available) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:538:16: note: Access to field 'activated' results in a dereference of a null pointer (loaded from variable 'emm_security_context') |
|
(0 < emm_security_context->activated) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:846:35: warning: Access to field 'mme_ue_s1ap_id' results in a dereference of a null pointer (loaded from variable 'ue_mm_context') [clang-analyzer-core.NullDereference] |
|
mme_app_handle_detach_req(ue_mm_context->mme_ue_s1ap_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:756:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:762:3: note: 'ue_mm_context' initialized here |
|
ue_mm_context_t* ue_mm_context = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:765:7: note: Assuming 'ue_mm_context' is null |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:765:3: note: Taking false branch |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:774:5: note: Loop condition is false. Exiting loop |
|
OAILOG_WARNING( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:421:3: note: expanded from macro 'OAILOG_WARNING' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:783:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:788:50: note: Field 'nas_msg' is not equal to null |
|
msg->nas_msg->data, &nas_msg, blength(msg->nas_msg), emm_security_context, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:788:37: note: Left side of '||' is false |
|
msg->nas_msg->data, &nas_msg, blength(msg->nas_msg), emm_security_context, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:215:21: note: expanded from macro 'blength' |
|
#define blength(b) (blengthe((b), 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:214:5: note: expanded from macro 'blengthe' |
|
(((b) == (void*) 0 || (b)->slen < 0) ? (int) (e) : ((b)->slen)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:788:37: note: Assuming field 'slen' is < 0 |
|
msg->nas_msg->data, &nas_msg, blength(msg->nas_msg), emm_security_context, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:215:21: note: expanded from macro 'blength' |
|
#define blength(b) (blengthe((b), 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:214:25: note: expanded from macro 'blengthe' |
|
(((b) == (void*) 0 || (b)->slen < 0) ? (int) (e) : ((b)->slen)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:788:37: note: '?' condition is true |
|
msg->nas_msg->data, &nas_msg, blength(msg->nas_msg), emm_security_context, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:215:21: note: expanded from macro 'blength' |
|
#define blength(b) (blengthe((b), 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:214:4: note: expanded from macro 'blengthe' |
|
(((b) == (void*) 0 || (b)->slen < 0) ? (int) (e) : ((b)->slen)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:793:7: note: Assuming 'decoder_rc' is >= 0 |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:793:3: note: Taking false branch |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:814:3: note: Control jumps to 'case 69:' at line 827 |
|
switch (emm_msg->header.message_type) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:828:7: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:833:11: note: 'emm_ctx' is equal to NULL |
|
if (emm_ctx == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:833:7: note: Taking true branch |
|
if (emm_ctx == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:840:9: note: Loop condition is false. Exiting loop |
|
OAILOG_WARNING( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:421:3: note: expanded from macro 'OAILOG_WARNING' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:846:35: note: Access to field 'mme_ue_s1ap_id' results in a dereference of a null pointer (loaded from variable 'ue_mm_context') |
|
mme_app_handle_detach_req(ue_mm_context->mme_ue_s1ap_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:853:16: warning: Access to field 'activated' results in a dereference of a null pointer (loaded from variable 'emm_security_context') [clang-analyzer-core.NullDereference] |
|
(0 < emm_security_context->activated) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:750:3: note: 'emm_security_context' initialized to a null pointer value |
|
emm_security_context_t* emm_security_context = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:756:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:765:7: note: Assuming 'ue_mm_context' is non-null |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:765:3: note: Taking true branch |
|
if (ue_mm_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:767:9: note: 'emm_ctx' is non-null |
|
if (emm_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:767:5: note: Taking true branch |
|
if (emm_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:768:7: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG(LOG_NAS_EMM, "EMMAS-SAP - got context %p\n", emm_ctx); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:769:11: note: Assuming the condition is true |
|
if (IS_EMM_CTXT_PRESENT_SECURITY(emm_ctx)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/emm_data.h:317:5: note: expanded from macro 'IS_EMM_CTXT_PRESENT_SECURITY' |
|
(!!((eMmCtXtPtR)->member_present_mask & EMM_CTXT_MEMBER_SECURITY)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:769:7: note: Taking false branch |
|
if (IS_EMM_CTXT_PRESENT_SECURITY(emm_ctx)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:783:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:788:50: note: Field 'nas_msg' is not equal to null |
|
msg->nas_msg->data, &nas_msg, blength(msg->nas_msg), emm_security_context, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:788:37: note: Left side of '||' is false |
|
msg->nas_msg->data, &nas_msg, blength(msg->nas_msg), emm_security_context, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:215:21: note: expanded from macro 'blength' |
|
#define blength(b) (blengthe((b), 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:214:5: note: expanded from macro 'blengthe' |
|
(((b) == (void*) 0 || (b)->slen < 0) ? (int) (e) : ((b)->slen)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:788:37: note: Assuming field 'slen' is < 0 |
|
msg->nas_msg->data, &nas_msg, blength(msg->nas_msg), emm_security_context, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:215:21: note: expanded from macro 'blength' |
|
#define blength(b) (blengthe((b), 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:214:25: note: expanded from macro 'blengthe' |
|
(((b) == (void*) 0 || (b)->slen < 0) ? (int) (e) : ((b)->slen)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:788:37: note: '?' condition is true |
|
msg->nas_msg->data, &nas_msg, blength(msg->nas_msg), emm_security_context, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:215:21: note: expanded from macro 'blength' |
|
#define blength(b) (blengthe((b), 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:214:4: note: expanded from macro 'blengthe' |
|
(((b) == (void*) 0 || (b)->slen < 0) ? (int) (e) : ((b)->slen)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:793:7: note: Assuming 'decoder_rc' is >= 0 |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:793:3: note: Taking false branch |
|
if (decoder_rc < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:814:3: note: Control jumps to 'case 69:' at line 827 |
|
switch (emm_msg->header.message_type) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:828:7: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:833:11: note: 'emm_ctx' is not equal to NULL |
|
if (emm_ctx == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:833:7: note: Taking false branch |
|
if (emm_ctx == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:850:7: note: Loop condition is false. Exiting loop |
|
REQUIREMENT_3GPP_24_301(R10_4_4_4_3__1); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/include/3gpp_requirements_24.301.h:44:3: note: expanded from macro 'REQUIREMENT_3GPP_24_301' |
|
REQUIREMENT_3GPP_SPEC( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_requirements.h:41:43: note: expanded from macro 'REQUIREMENT_3GPP_SPEC' |
|
#define REQUIREMENT_3GPP_SPEC(pRoTo, sTr) OAILOG_SPEC(pRoTo, sTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:394:3: note: expanded from macro 'OAILOG_SPEC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:851:7: note: Loop condition is false. Exiting loop |
|
REQUIREMENT_3GPP_24_301(R10_4_4_4_3__2); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/include/3gpp_requirements_24.301.h:44:3: note: expanded from macro 'REQUIREMENT_3GPP_24_301' |
|
REQUIREMENT_3GPP_SPEC( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/3gpp/3gpp_requirements.h:41:43: note: expanded from macro 'REQUIREMENT_3GPP_SPEC' |
|
#define REQUIREMENT_3GPP_SPEC(pRoTo, sTr) OAILOG_SPEC(pRoTo, sTr) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:394:3: note: expanded from macro 'OAILOG_SPEC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:852:12: note: Assuming 1 is equal to field 'security_context_available' |
|
if ((1 == decode_status.security_context_available) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:852:11: note: Left side of '&&' is true |
|
if ((1 == decode_status.security_context_available) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:853:16: note: Access to field 'activated' results in a dereference of a null pointer (loaded from variable 'emm_security_context') |
|
(0 < emm_security_context->activated) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2143:38: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
nas_msg.header.sequence_number = emm_security_context->dl_count.seq_num; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:174:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:178:3: note: Control jumps to the 'default' case at line 194 |
|
switch (primitive) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:198:12: note: Calling 'emm_as_send_a' |
|
rc = emm_as_send_a(msg); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:1202:3: note: Control jumps to 'case _EMMAS_ESTABLISH_CNF:' at line 1240 |
|
switch (msg->primitive) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:1241:23: note: Calling 'emm_as_establish_cnf' |
|
as_msg.msg_id = emm_as_establish_cnf( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2043:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2056:7: note: Assuming field 'guti' is not equal to NULL |
|
if (msg->eps_id.guti == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2056:3: note: Taking false branch |
|
if (msg->eps_id.guti == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2072:3: note: 'emm_security_context' initialized to a null pointer value |
|
emm_security_context_t* emm_security_context = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2074:7: note: Assuming 'emm_ctx' is non-null |
|
if (emm_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2074:3: note: Taking true branch |
|
if (emm_ctx) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2075:9: note: Assuming the condition is true |
|
if (IS_EMM_CTXT_PRESENT_SECURITY(emm_ctx)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/emm_data.h:317:5: note: expanded from macro 'IS_EMM_CTXT_PRESENT_SECURITY' |
|
(!!((eMmCtXtPtR)->member_present_mask & EMM_CTXT_MEMBER_SECURITY)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2075:5: note: Taking false branch |
|
if (IS_EMM_CTXT_PRESENT_SECURITY(emm_ctx)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2105:3: note: Control jumps to 'case 3:' at line 2119 |
|
switch (msg->nas_info) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2124:11: note: 'emm_msg' is non-null |
|
if (emm_msg) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2124:7: note: Taking true branch |
|
if (emm_msg) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2128:7: note: Execution continues on line 2142 |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2142:7: note: Assuming 'size' is > 0 |
|
if (size > 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2142:3: note: Taking true branch |
|
if (size > 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_as.c:2143:38: note: Dereference of null pointer |
|
nas_msg.header.sequence_number = emm_security_context->dl_count.seq_num; |
|
^ |
|
11487 warnings generated. |
|
Suppressed 11480 warnings (11446 in non-user code, 34 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregisteredInitiated.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregisteredInitiated.c:204:13: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = (*emm_proc->not_delivered)(emm_ctx, emm_proc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregisteredInitiated.c:204:13: note: Value stored to 'rc' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregisteredInitiated.c:223:13: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = (*emm_proc->not_delivered_ho)(emm_ctx, emm_proc); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmDeregisteredInitiated.c:223:13: note: Value stored to 'rc' is never read |
|
5533 warnings generated. |
|
Suppressed 5531 warnings (5529 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_esm.c |
|
5507 warnings generated. |
|
Suppressed 5507 warnings (5505 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_fsm.c |
|
6127 warnings generated. |
|
Suppressed 6127 warnings (6100 in non-user code, 27 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_reg.c |
|
4542 warnings generated. |
|
Suppressed 4542 warnings (4540 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/EmmRegistered.c |
|
5531 warnings generated. |
|
Suppressed 5531 warnings (5529 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_sap.c |
|
5785 warnings generated. |
|
Suppressed 5785 warnings (5758 in non-user code, 27 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c:137:25: warning: loop variable has narrower type 'uint8_t' (aka 'unsigned char') than iteration's upper bound 'int' [bugprone-too-small-loop-variable] |
|
for (uint8_t itr = 0; itr < mme_config.restricted_plmn.num; itr++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c:530:70: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
} else if (msg->detachtype.typeofdetach == DETACH_TYPE_RESERVED_1) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c:532:4: note: end of the original |
|
} else if (msg->detachtype.typeofdetach == DETACH_TYPE_RESERVED_2) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c:532:70: note: clone 1 starts here |
|
} else if (msg->detachtype.typeofdetach == DETACH_TYPE_RESERVED_2) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c:686:39: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
ies->supported_codecs = calloc(1, sizeof(*ies->supported_codecs)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c:689:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
sizeof(*ies->supported_codecs)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c:1063:43: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
if (msg->emmcause == EMM_CAUSE_SUCCESS) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c:1065:4: note: end of the original |
|
} else if ( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_recv.c:1068:75: note: clone 1 starts here |
|
AUTHENTICATION_FAILURE_AUTHENTICATION_FAILURE_PARAMETER_PRESENT)) { |
|
^ |
|
11495 warnings generated. |
|
Suppressed 11490 warnings (11465 in non-user code, 25 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/DedicatedEpsBearerContextActivation.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/DedicatedEpsBearerContextActivation.c:440:7: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = dedicated_eps_bearer_activate( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/DedicatedEpsBearerContextActivation.c:440:7: note: Value stored to 'rc' is never read |
|
11186 warnings generated. |
|
Suppressed 11185 warnings (11161 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/DefaultEpsBearerContextActivation.c |
|
5828 warnings generated. |
|
Suppressed 5828 warnings (5805 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_send.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_send.c:1306:48: warning: repeated branch in conditional chain [bugprone-branch-clone] |
|
if (msg->ident_type == IDENTITY_TYPE_2_IMSI) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_send.c:1308:4: note: end of the original |
|
} else if (msg->ident_type == IDENTITY_TYPE_2_TMSI) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/emm/sap/emm_send.c:1314:10: note: clone 1 starts here |
|
} else { |
|
^ |
|
7060 warnings generated. |
|
Suppressed 7059 warnings (7034 in non-user code, 25 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/EpsBearerContextDeactivation.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/EpsBearerContextDeactivation.c:433:7: warning: Value stored to 'rc' is never read [clang-analyzer-deadcode.DeadStores] |
|
rc = eps_bearer_deactivate( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/EpsBearerContextDeactivation.c:433:7: note: Value stored to 'rc' is never read |
|
11192 warnings generated. |
|
Suppressed 11191 warnings (11167 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_data_context.c |
|
5747 warnings generated. |
|
Suppressed 5747 warnings (5724 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr.c |
|
5744 warnings generated. |
|
Suppressed 5744 warnings (5721 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ip.c |
|
2132 warnings generated. |
|
Suppressed 2132 warnings (2130 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_information.c |
|
6134 warnings generated. |
|
Suppressed 6134 warnings (6111 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_main.c |
|
5486 warnings generated. |
|
Suppressed 5486 warnings (5484 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_pt.c |
|
731 warnings generated. |
|
Suppressed 731 warnings (729 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/EsmStatusHdl.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/EsmStatusHdl.c:83:5: warning: switch has 4 consecutive identical branches [bugprone-branch-clone] |
|
case ESM_CAUSE_INVALID_EPS_BEARER_IDENTITY: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/EsmStatusHdl.c:126:12: note: last of these clones ends here |
|
break; |
|
^ |
|
5829 warnings generated. |
|
Suppressed 5828 warnings (5805 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/PdnConnectivity.c |
|
6210 warnings generated. |
|
Suppressed 6210 warnings (6187 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:157:22: warning: Access to field 'n_bearers' results in a dereference of a null pointer (loaded from variable 'pdn') [clang-analyzer-core.NullDereference] |
|
pdn->n_bearers += 1; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:82:3: note: 'pdn' initialized to a null pointer value |
|
esm_pdn_t* pdn = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:88:7: note: Assuming 'ue_mm_context' is not equal to NULL |
|
if (ue_mm_context == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:88:3: note: Taking false branch |
|
if (ue_mm_context == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:96:7: note: Assuming 'is_default' is false |
|
(is_default) ? "default" : "dedicated", ebi, pid, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:433:63: note: expanded from macro 'OAILOG_INFO' |
|
NULL, OAILOG_LEVEL_INFO, pRoTo, __FILE__, __LINE__, ##__VA_ARGS__); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:96:7: note: '?' condition is false |
|
(is_default) ? "default" : "dedicated", ebi, pid, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:92:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:99:7: note: Assuming 'pid' is >= MAX_APN_PER_UE |
|
if (pid < MAX_APN_PER_UE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:99:3: note: Taking false branch |
|
if (pid < MAX_APN_PER_UE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:136:7: note: 'bidx' is < BEARERS_PER_UE |
|
if (bidx < BEARERS_PER_UE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:136:3: note: Taking true branch |
|
if (bidx < BEARERS_PER_UE) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:141:9: note: Assuming the condition is true |
|
if (ue_mm_context->bearer_contexts[bidx]) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:141:5: note: Taking true branch |
|
if (ue_mm_context->bearer_contexts[bidx]) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:148:9: note: 'bearer_context' is non-null |
|
if (bearer_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:148:5: note: Taking true branch |
|
if (bearer_context) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/esm_ebr_context.c:157:22: note: Access to field 'n_bearers' results in a dereference of a null pointer (loaded from variable 'pdn') |
|
pdn->n_bearers += 1; |
|
^ |
|
5748 warnings generated. |
|
Suppressed 5747 warnings (5724 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/PdnDisconnect.c |
|
5831 warnings generated. |
|
Suppressed 5831 warnings (5808 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_send.c |
|
5747 warnings generated. |
|
Suppressed 5747 warnings (5724 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:167:5: warning: switch has 7 consecutive identical branches [bugprone-branch-clone] |
|
case ESM_PDN_DISCONNECT_REQ: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:186:12: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:230:5: warning: switch has 5 consecutive identical branches [bugprone-branch-clone] |
|
case ESM_DEDICATED_EPS_BEARER_CONTEXT_ACTIVATE_CNF: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:243:12: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:610:7: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case MODIFY_EPS_BEARER_CONTEXT_ACCEPT: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:614:14: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:692:7: warning: switch has 2 consecutive identical branches [bugprone-branch-clone] |
|
case BEARER_RESOURCE_ALLOCATION_REQUEST: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:696:14: note: last of these clones ends here |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:891:5: warning: switch has 4 consecutive identical branches [bugprone-branch-clone] |
|
case PDN_CONNECTIVITY_REJECT: |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_sap.c:901:12: note: last of these clones ends here |
|
break; |
|
^ |
|
6070 warnings generated. |
|
Suppressed 6065 warnings (6042 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas/esm/sap/esm_recv.c |
|
11110 warnings generated. |
|
Suppressed 11110 warnings (11086 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:6570:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:711:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fspgw_5fstate_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fspgw_5fstate_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fspgw_5fstate_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:1100:67: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(22, this->_internal_pending_procedures(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:1480:67: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(4, this->_internal_pending_eps_bearers(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:2566:78: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(20, this->_internal_bearer_contexts_to_be_created(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:3630:64: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(15, this->_internal_eps_bearer_list(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:4913:62: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_create_new_tft(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:4921:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_add_packet_filter(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:4929:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_replace_packet_filter(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:5886:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_s11_bearer_context(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:6018:60: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
reinterpret_cast<char*>(&sgw_eps_bearer_context_)) + sizeof(pgw_eps_bearer_context_)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/spgw_state.pb.cc:6222:9: warning: suspicious usage of 'sizeof(A*)'; pointer to aggregate [bugprone-sizeof-expression] |
|
+ sizeof(S11BearerContext::pgw_eps_bearer_context_) |
|
^ |
|
61700 warnings generated. |
|
Suppressed 61692 warnings (61679 in non-user code, 4 NOLINT, 9 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/common_types.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/common_types.pb.cc:1773:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/common_types.pb.cc:251:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/common_types.pb.cc:1904:59: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_apn_configs(i), target, stream); |
|
^ |
|
61282 warnings generated. |
|
Suppressed 61283 warnings (61279 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:15288:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:1624:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fnas_5fstate_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fnas_5fstate_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fnas_5fstate_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:2284:61: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_tai_many_plmn(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:2587:65: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_partial_tai_lists(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:3591:54: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_vector(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:9123:63: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_emm_common_proc(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:9131:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_cn_proc(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:9153:66: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(6, this->_internal_nas_proc_mess_sign(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:12997:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_proto_or_container_id(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/nas_state.pb.cc:15869:55: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(23, this->_internal_vector(i), target, stream); |
|
^ |
|
62339 warnings generated. |
|
Suppressed 62333 warnings (62323 in non-user code, 4 NOLINT, 6 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/AmfMessage.cpp |
|
29495 warnings generated. |
|
Suppressed 29495 warnings (29495 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/std_3gpp_types.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/std_3gpp_types.pb.cc:2422:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/std_3gpp_types.pb.cc:350:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fstd_5f3gpp_5ftypes_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fstd_5f3gpp_5ftypes_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fstd_5f3gpp_5ftypes_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/std_3gpp_types.pb.cc:476:58: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(1, this->_internal_parameters(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/std_3gpp_types.pb.cc:1018:60: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(5, this->_internal_pco_protocol(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/std_3gpp_types.pb.cc:2639:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_ipv4_remote_addresses(i), target, stream); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/nas/lte/protos/oai/std_3gpp_types.pb.cc:2647:69: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_ipv6_remote_addresses(i), target, stream); |
|
^ |
|
61324 warnings generated. |
|
Suppressed 61322 warnings (61318 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GRegistrationRequest.cpp |
|
29084 warnings generated. |
|
Suppressed 29084 warnings (29084 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GRegistrationAccept.cpp |
|
29080 warnings generated. |
|
Suppressed 29080 warnings (29080 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GRegistrationComplete.cpp |
|
29172 warnings generated. |
|
Suppressed 29172 warnings (29172 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GRegistrationReject.cpp |
|
28975 warnings generated. |
|
Suppressed 28975 warnings (28975 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GDeRegistrationRequestUEInit.cpp |
|
29063 warnings generated. |
|
Suppressed 29063 warnings (29063 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GDeRegistrationAcceptUEInit.cpp |
|
28972 warnings generated. |
|
Suppressed 28972 warnings (28972 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GAuthenticationRequest.cpp |
|
28989 warnings generated. |
|
Suppressed 28989 warnings (28989 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GAuthenticationResponse.cpp |
|
29175 warnings generated. |
|
Suppressed 29175 warnings (29175 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GAuthenticationResult.cpp |
|
28980 warnings generated. |
|
Suppressed 28980 warnings (28980 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GAuthenticationFailure.cpp |
|
28975 warnings generated. |
|
Suppressed 28975 warnings (28975 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GAuthenticationReject.cpp |
|
28972 warnings generated. |
|
Suppressed 28972 warnings (28972 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GSecurityModeCommand.cpp |
|
29004 warnings generated. |
|
Suppressed 29004 warnings (29004 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GSecurityModeComplete.cpp |
|
28972 warnings generated. |
|
Suppressed 28972 warnings (28972 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GSecurityModeReject.cpp |
|
28975 warnings generated. |
|
Suppressed 28975 warnings (28975 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GIdentityRequest.cpp |
|
28975 warnings generated. |
|
Suppressed 28975 warnings (28975 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GIdentityResponse.cpp |
|
29055 warnings generated. |
|
Suppressed 29055 warnings (29055 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GPDUSessionEstablishmentRequest.cpp |
|
28982 warnings generated. |
|
Suppressed 28982 warnings (28982 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GPDUSessionEstablishmentAccept.cpp |
|
29016 warnings generated. |
|
Suppressed 29016 warnings (29016 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GPDUSessionEstablishmentReject.cpp |
|
28976 warnings generated. |
|
Suppressed 28976 warnings (28976 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GPDUSessionModificationRequest.cpp |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GPDUSessionModificationRequest.cpp:58:5: warning: Value stored to 'decoded' is never read [clang-analyzer-deadcode.DeadStores] |
|
decoded += decoded_result; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GPDUSessionModificationRequest.cpp:58:5: note: Value stored to 'decoded' is never read |
|
28974 warnings generated. |
|
Suppressed 28973 warnings (28973 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GPDUSessionModificationReject.cpp |
|
28976 warnings generated. |
|
Suppressed 28976 warnings (28976 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GPDUSessionReleaseRequest.cpp |
|
28973 warnings generated. |
|
Suppressed 28973 warnings (28973 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GPDUSessionReleaseReject.cpp |
|
28976 warnings generated. |
|
Suppressed 28976 warnings (28976 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GULNASTransport.cpp |
|
29064 warnings generated. |
|
Suppressed 29064 warnings (29064 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/M5GDLNASTransport.cpp |
|
29065 warnings generated. |
|
Suppressed 29065 warnings (29065 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GExtendedProtocolDiscriminator.cpp |
|
28965 warnings generated. |
|
Suppressed 28965 warnings (28965 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/SmfMessage.cpp |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/SmfMessage.cpp:143:3: warning: Value stored to 'encode_result' is never read [clang-analyzer-deadcode.DeadStores] |
|
encode_result = encode_result + header_result; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/SmfMessage.cpp:143:3: note: Value stored to 'encode_result' is never read |
|
29051 warnings generated. |
|
Suppressed 29050 warnings (29050 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GNasKeySetIdentifier.cpp |
|
28967 warnings generated. |
|
Suppressed 28967 warnings (28967 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GMessageType.cpp |
|
28965 warnings generated. |
|
Suppressed 28965 warnings (28965 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSecurityHeaderType.cpp |
|
28965 warnings generated. |
|
Suppressed 28965 warnings (28965 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSMobileIdentity.cpp |
|
/workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSMobileIdentity.cpp:589:10: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
return (encoded + encoded_rc); |
|
^ |
|
36947 warnings generated. |
|
Suppressed 36946 warnings (36946 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSRegistrationType.cpp |
|
30025 warnings generated. |
|
Suppressed 30025 warnings (30025 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSRegistrationResult.cpp |
|
30026 warnings generated. |
|
Suppressed 30026 warnings (30026 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSDeRegistrationType.cpp |
|
28967 warnings generated. |
|
Suppressed 28967 warnings (28967 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSpareHalfOctet.cpp |
|
28965 warnings generated. |
|
Suppressed 28965 warnings (28965 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GAuthenticationParameterAUTN.cpp |
|
28969 warnings generated. |
|
Suppressed 28969 warnings (28969 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GABBA.cpp |
|
28969 warnings generated. |
|
Suppressed 28969 warnings (28969 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GAuthenticationParameterRAND.cpp |
|
28969 warnings generated. |
|
Suppressed 28969 warnings (28969 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GAuthenticationResponseParameter.cpp |
|
29169 warnings generated. |
|
Suppressed 29169 warnings (29169 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GNASSecurityAlgorithms.cpp |
|
28967 warnings generated. |
|
Suppressed 28967 warnings (28967 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GEAPMessage.cpp |
|
28970 warnings generated. |
|
Suppressed 28970 warnings (28970 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSIdentityType.cpp |
|
28966 warnings generated. |
|
Suppressed 28966 warnings (28966 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GUESecurityCapability.cpp |
|
36880 warnings generated. |
|
Suppressed 36880 warnings (36880 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GPayloadContainerType.cpp |
|
28969 warnings generated. |
|
Suppressed 28969 warnings (28969 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GPTI.cpp |
|
28965 warnings generated. |
|
Suppressed 28965 warnings (28965 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GPayloadContainer.cpp |
|
29057 warnings generated. |
|
Suppressed 29057 warnings (29057 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSSCMode.cpp |
|
28969 warnings generated. |
|
Suppressed 28969 warnings (28969 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GIntegrityProtMaxDataRate.cpp |
|
28966 warnings generated. |
|
Suppressed 28966 warnings (28966 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GPDUSessionType.cpp |
|
28969 warnings generated. |
|
Suppressed 28969 warnings (28969 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GPDUSessionIdentity.cpp |
|
28966 warnings generated. |
|
Suppressed 28966 warnings (28966 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GPDUAddress.cpp |
|
28971 warnings generated. |
|
Suppressed 28971 warnings (28971 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSessionAMBR.cpp |
|
28970 warnings generated. |
|
Suppressed 28970 warnings (28970 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GQOSRules.cpp |
|
28985 warnings generated. |
|
Suppressed 28985 warnings (28985 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GSMCause.cpp |
|
28969 warnings generated. |
|
Suppressed 28969 warnings (28969 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GMMCause.cpp |
|
28966 warnings generated. |
|
Suppressed 28966 warnings (28966 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GIMEISVRequest.cpp |
|
28967 warnings generated. |
|
Suppressed 28967 warnings (28967 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/nas5g/src/ies/M5GDNN.cpp |
|
28970 warnings generated. |
|
Suppressed 28970 warnings (28970 in non-user code). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/s1ap/lte/protos/oai/common_types.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/s1ap/lte/protos/oai/common_types.pb.cc:1773:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/s1ap/lte/protos/oai/common_types.pb.cc:251:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fcommon_5ftypes_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/s1ap/lte/protos/oai/common_types.pb.cc:1904:59: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(3, this->_internal_apn_configs(i), target, stream); |
|
^ |
|
61282 warnings generated. |
|
Suppressed 61283 warnings (61279 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_encoder.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_encoder.c:118:37: warning: Value stored to 'res' during its initialization is never read [clang-analyzer-deadcode.DeadStores] |
|
asn_encode_to_new_buffer_result_t res = {NULL, {0, NULL, NULL}}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_encoder.c:118:37: note: Value stored to 'res' during its initialization is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_encoder.c:152:37: warning: Value stored to 'res' during its initialization is never read [clang-analyzer-deadcode.DeadStores] |
|
asn_encode_to_new_buffer_result_t res = {NULL, {0, NULL, NULL}}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_encoder.c:152:37: note: Value stored to 'res' during its initialization is never read |
|
7496 warnings generated. |
|
Suppressed 7494 warnings (7492 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_decoder.c |
|
7494 warnings generated. |
|
Suppressed 7494 warnings (7492 in non-user code, 2 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/build/tasks/s1ap/lte/protos/oai/s1ap_state.pb.cc |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: warning: Called function pointer is null (null dereference) [clang-analyzer-core.CallAndMessage] |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/s1ap/lte/protos/oai/s1ap_state.pb.cc:2530:3: note: Calling 'InternalMetadata::MergeFrom' |
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:9: note: Assuming the condition is true |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:120:5: note: Taking true branch |
|
if (other.have_unknown_fields()) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:46: note: Passing null pointer value via 1st parameter 'default_instance' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:121:22: note: Calling 'InternalMetadata::unknown_fields' |
|
DoMergeFrom<T>(other.unknown_fields<T>(nullptr)); |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:9: note: Assuming the condition is false |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/port_def.inc:244:35: note: expanded from macro 'PROTOBUF_PREDICT_FALSE' |
|
#define PROTOBUF_PREDICT_FALSE(x) (__builtin_expect(x, 0)) |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:89:5: note: Taking false branch |
|
if (PROTOBUF_PREDICT_FALSE(have_unknown_fields())) { |
|
^ |
|
/usr/local/include/google/protobuf/metadata_lite.h:92:14: note: Called function pointer is null (null dereference) |
|
return default_instance(); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/s1ap/lte/protos/oai/s1ap_state.pb.cc:459:13: warning: initialization of 'dynamic_init_dummy_lte_2fprotos_2foai_2fs1ap_5fstate_2eproto' with static storage duration may throw an exception that cannot be caught [cert-err58-cpp] |
|
static bool dynamic_init_dummy_lte_2fprotos_2foai_2fs1ap_5fstate_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_lte_2fprotos_2foai_2fs1ap_5fstate_2eproto)), true); |
|
^ |
|
/usr/local/include/google/protobuf/generated_message_reflection.h:299:22: note: possibly throwing function declared here |
|
void PROTOBUF_EXPORT AddDescriptors(const DescriptorTable* table); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/build/tasks/s1ap/lte/protos/oai/s1ap_state.pb.cc:1082:67: warning: narrowing conversion from 'unsigned int' to signed type 'int' is implementation-defined [bugprone-narrowing-conversions] |
|
InternalWriteMessage(2, this->_internal_supported_tai_items(i), target, stream); |
|
^ |
|
61524 warnings generated. |
|
Suppressed 61525 warnings (61521 in non-user code, 4 NOLINT). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:558:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.present == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:443:7: note: Assuming 'hss_associated' is true |
|
if (!hss_associated) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:443:3: note: Taking false branch |
|
if (!hss_associated) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:458:7: note: Assuming 'pdu' is not equal to NULL |
|
if (pdu == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:458:3: note: Taking false branch |
|
if (pdu == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:468:7: note: Assuming 'stream' is equal to 0 |
|
if (stream != 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:468:3: note: Taking false branch |
|
if (stream != 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:494:7: note: Assuming the condition is false |
|
if ((enb_association = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:494:3: note: Taking false branch |
|
if ((enb_association = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:505:7: note: Assuming field 's1_state' is not equal to S1AP_RESETING |
|
if (enb_association->s1_state == S1AP_RESETING || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:505:7: note: Left side of '||' is false |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:506:7: note: Assuming field 's1_state' is not equal to S1AP_SHUTDOWN |
|
enb_association->s1_state == S1AP_SHUTDOWN) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:505:3: note: Taking false branch |
|
if (enb_association->s1_state == S1AP_RESETING || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:538:3: note: Loop condition is false. Exiting loop |
|
OAILOG_MESSAGE_START_SYNC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:436:3: note: expanded from macro 'OAILOG_MESSAGE_START_SYNC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Loop condition is false. Execution continues on line 545 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:546:33: note: 'ie_enb_name' is equal to null |
|
S1ap_S1SetupRequestIEs_t, ie_enb_name, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:422:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_DEBUG( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:548:7: note: 'ie_enb_name' is null |
|
if (ie_enb_name) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:548:3: note: Taking false branch |
|
if (ie_enb_name) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:556:33: note: Null pointer value stored to 'ie' |
|
S1ap_S1SetupRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Loop condition is false. Execution continues on line 555 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:556:33: note: 'ie' is equal to null |
|
S1ap_S1SetupRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:558:7: note: Dereference of null pointer |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.present == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:618:39: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
supp_ta_list->list_count = ta_list->list.count; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:443:7: note: Assuming 'hss_associated' is true |
|
if (!hss_associated) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:443:3: note: Taking false branch |
|
if (!hss_associated) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:458:7: note: Assuming 'pdu' is not equal to NULL |
|
if (pdu == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:458:3: note: Taking false branch |
|
if (pdu == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:468:7: note: Assuming 'stream' is equal to 0 |
|
if (stream != 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:468:3: note: Taking false branch |
|
if (stream != 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:494:7: note: Assuming the condition is false |
|
if ((enb_association = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:494:3: note: Taking false branch |
|
if ((enb_association = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:505:7: note: Assuming field 's1_state' is not equal to S1AP_RESETING |
|
if (enb_association->s1_state == S1AP_RESETING || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:505:7: note: Left side of '||' is false |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:506:7: note: Assuming field 's1_state' is not equal to S1AP_SHUTDOWN |
|
enb_association->s1_state == S1AP_SHUTDOWN) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:505:3: note: Taking false branch |
|
if (enb_association->s1_state == S1AP_RESETING || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:538:3: note: Loop condition is false. Exiting loop |
|
OAILOG_MESSAGE_START_SYNC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:436:3: note: expanded from macro 'OAILOG_MESSAGE_START_SYNC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Loop condition is false. Execution continues on line 545 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:546:33: note: 'ie_enb_name' is equal to null |
|
S1ap_S1SetupRequestIEs_t, ie_enb_name, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:422:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_DEBUG( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:548:7: note: 'ie_enb_name' is null |
|
if (ie_enb_name) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:548:3: note: Taking false branch |
|
if (ie_enb_name) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Assuming field 'id' is equal to 59 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Execution continues on line 555 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:556:33: note: 'ie' is not equal to null |
|
S1ap_S1SetupRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:558:7: note: Assuming field 'present' is not equal to S1ap_ENB_ID_PR_homeENB_ID |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.present == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:558:3: note: Taking false branch |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.present == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:576:9: note: Assuming field 'size' is equal to 20 |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.choice.macroENB_ID.size != 20) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:576:5: note: Taking false branch |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.choice.macroENB_ID.size != 20) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:582:5: note: Loop condition is false. Exiting loop |
|
OAILOG_MESSAGE_ADD_SYNC(context, "macro eNB id: %05x", enb_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:448:3: note: expanded from macro 'OAILOG_MESSAGE_ADD_SYNC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:585:3: note: Loop condition is false. Exiting loop |
|
OAILOG_MESSAGE_FINISH((void*) context); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:458:3: note: expanded from macro 'OAILOG_MESSAGE_FINISH' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:594:33: note: Null pointer value stored to 'ie_supported_tas' |
|
S1ap_S1SetupRequestIEs_t, ie_supported_tas, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Loop condition is false. Execution continues on line 593 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:594:33: note: 'ie_supported_tas' is equal to null |
|
S1ap_S1SetupRequestIEs_t, ie_supported_tas, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:603:7: note: Assuming 'ta_ret' is equal to TA_LIST_RET_OK |
|
if (ta_ret != TA_LIST_RET_OK) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:603:3: note: Taking false branch |
|
if (ta_ret != TA_LIST_RET_OK) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:616:3: note: 'ta_list' initialized to a null pointer value |
|
S1ap_SupportedTAs_t* ta_list = &ie_supported_tas->value.choice.SupportedTAs; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:618:39: note: Dereference of null pointer |
|
supp_ta_list->list_count = ta_list->list.count; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:652:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
ie_default_paging_drx->value.choice.PagingDRX; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:443:7: note: Assuming 'hss_associated' is true |
|
if (!hss_associated) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:443:3: note: Taking false branch |
|
if (!hss_associated) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:458:7: note: Assuming 'pdu' is not equal to NULL |
|
if (pdu == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:458:3: note: Taking false branch |
|
if (pdu == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:468:7: note: Assuming 'stream' is equal to 0 |
|
if (stream != 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:468:3: note: Taking false branch |
|
if (stream != 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:494:7: note: Assuming the condition is false |
|
if ((enb_association = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:494:3: note: Taking false branch |
|
if ((enb_association = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:505:7: note: Assuming field 's1_state' is not equal to S1AP_RESETING |
|
if (enb_association->s1_state == S1AP_RESETING || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:505:7: note: Left side of '||' is false |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:506:7: note: Assuming field 's1_state' is not equal to S1AP_SHUTDOWN |
|
enb_association->s1_state == S1AP_SHUTDOWN) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:505:3: note: Taking false branch |
|
if (enb_association->s1_state == S1AP_RESETING || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:538:3: note: Loop condition is false. Exiting loop |
|
OAILOG_MESSAGE_START_SYNC( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:436:3: note: expanded from macro 'OAILOG_MESSAGE_START_SYNC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Loop condition is false. Execution continues on line 545 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:546:33: note: 'ie_enb_name' is equal to null |
|
S1ap_S1SetupRequestIEs_t, ie_enb_name, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:422:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_DEBUG( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:545:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:548:7: note: 'ie_enb_name' is null |
|
if (ie_enb_name) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:548:3: note: Taking false branch |
|
if (ie_enb_name) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Assuming field 'id' is equal to 59 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Execution continues on line 555 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:556:33: note: 'ie' is not equal to null |
|
S1ap_S1SetupRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:555:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:558:7: note: Assuming field 'present' is not equal to S1ap_ENB_ID_PR_homeENB_ID |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.present == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:558:3: note: Taking false branch |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.present == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:576:9: note: Assuming field 'size' is equal to 20 |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.choice.macroENB_ID.size != 20) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:576:5: note: Taking false branch |
|
if (ie->value.choice.Global_ENB_ID.eNB_ID.choice.macroENB_ID.size != 20) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:582:5: note: Loop condition is false. Exiting loop |
|
OAILOG_MESSAGE_ADD_SYNC(context, "macro eNB id: %05x", enb_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:448:3: note: expanded from macro 'OAILOG_MESSAGE_ADD_SYNC' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:585:3: note: Loop condition is false. Exiting loop |
|
OAILOG_MESSAGE_FINISH((void*) context); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:458:3: note: expanded from macro 'OAILOG_MESSAGE_FINISH' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Field 'id' is not equal to 64 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Assuming field 'id' is equal to 64 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Execution continues on line 593 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:594:33: note: 'ie_supported_tas' is not equal to null |
|
S1ap_S1SetupRequestIEs_t, ie_supported_tas, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:593:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:603:7: note: Assuming 'ta_ret' is equal to TA_LIST_RET_OK |
|
if (ta_ret != TA_LIST_RET_OK) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:603:3: note: Taking false branch |
|
if (ta_ret != TA_LIST_RET_OK) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:621:25: note: Assuming 'tai_idx' is >= field 'list_count' |
|
for (int tai_idx = 0; tai_idx < supp_ta_list->list_count; tai_idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:621:3: note: Loop condition is false. Execution continues on line 641 |
|
for (int tai_idx = 0; tai_idx < supp_ta_list->list_count; tai_idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:641:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:648:33: note: Null pointer value stored to 'ie_default_paging_drx' |
|
S1ap_S1SetupRequestIEs_t, ie_default_paging_drx, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:647:3: note: Loop condition is false. Execution continues on line 647 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:648:33: note: 'ie_default_paging_drx' is equal to null |
|
S1ap_S1SetupRequestIEs_t, ie_default_paging_drx, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:647:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:647:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:647:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:647:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:652:7: note: Dereference of null pointer |
|
ie_default_paging_drx->value.choice.PagingDRX; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1030:11: warning: function 'memcmp' is called without explicitly comparing result [bugprone-suspicious-string-compare] |
|
if (memcmp( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1319:7: warning: Value stored to 'cause_type' is never read [clang-analyzer-deadcode.DeadStores] |
|
cause_type = S1ap_Cause_PR_radioNetwork; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1319:7: note: Value stored to 'cause_type' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1320:7: warning: Value stored to 'cause_value' is never read [clang-analyzer-deadcode.DeadStores] |
|
cause_value = S1ap_CauseRadioNetwork_multiple_E_RAB_ID_instances; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1320:7: note: Value stored to 'cause_value' is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1330:7: warning: Potential leak of memory pointed to by 'ie' [clang-analyzer-unix.Malloc] |
|
OAILOG_ERROR_UE(LOG_S1AP, imsi64, "Unknown cause for context release"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:583:5: note: expanded from macro 'OAILOG_ERROR_UE' |
|
log_message_prefix_id( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1453:7: note: Assuming the condition is false |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1453:3: note: Taking false branch |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1467:9: note: Assuming field 'cause' is not equal to S1AP_IMPLICIT_CONTEXT_RELEASE |
|
if (ue_context_release_command_pP->cause == S1AP_IMPLICIT_CONTEXT_RELEASE || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1467:9: note: Left side of '||' is false |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1468:9: note: Assuming field 'cause' is not equal to S1AP_SCTP_SHUTDOWN_OR_RESET |
|
ue_context_release_command_pP->cause == S1AP_SCTP_SHUTDOWN_OR_RESET || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1467:9: note: Left side of '||' is false |
|
if (ue_context_release_command_pP->cause == S1AP_IMPLICIT_CONTEXT_RELEASE || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1469:9: note: Assuming field 'cause' is not equal to S1AP_INVALID_ENB_ID |
|
ue_context_release_command_pP->cause == S1AP_INVALID_ENB_ID) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1467:5: note: Taking false branch |
|
if (ue_context_release_command_pP->cause == S1AP_IMPLICIT_CONTEXT_RELEASE || |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1472:12: note: Calling 's1ap_mme_generate_ue_context_release_command' |
|
rc = s1ap_mme_generate_ue_context_release_command( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1287:46: note: Memory is allocated |
|
ie = (S1ap_UEContextReleaseCommand_IEs_t*) calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1292:3: note: Control jumps to the 'default' case at line 1329 |
|
switch (cause) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1330:7: note: Potential leak of memory pointed to by 'ie' |
|
OAILOG_ERROR_UE(LOG_S1AP, imsi64, "Unknown cause for context release"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:583:5: note: expanded from macro 'OAILOG_ERROR_UE' |
|
log_message_prefix_id( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1377:35: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
ie->value.choice.MME_UE_S1AP_ID = ue_ref_p->mme_ue_s1ap_id; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1493:7: note: Assuming 'ue_context_mod_req_pP' is not equal to NULL |
|
if (ue_context_mod_req_pP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1493:3: note: Taking false branch |
|
if (ue_context_mod_req_pP == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1497:7: note: Assuming the condition is false |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1497:3: note: Taking false branch |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1506:10: note: Calling 's1ap_mme_generate_ue_context_modification' |
|
rc = s1ap_mme_generate_ue_context_modification( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1362:3: note: 'ie' initialized to a null pointer value |
|
S1ap_UEContextModificationRequestIEs_t* ie = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1366:7: note: 'ue_ref_p' is not equal to NULL |
|
if (ue_ref_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1366:3: note: Taking false branch |
|
if (ue_ref_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1377:35: note: Dereference of null pointer |
|
ie->value.choice.MME_UE_S1AP_ID = ue_ref_p->mme_ue_s1ap_id; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1420:55: warning: both sides of operator are equivalent [misc-redundant-expression] |
|
if ((S1AP_UE_CONTEXT_MOD_UE_AMBR_INDICATOR_PRESENT) == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1537:8: warning: Although the value stored to 'ue_ref_p' is used in the enclosing expression, the value is never actually read from 'ue_ref_p' [clang-analyzer-deadcode.DeadStores] |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1537:8: note: Although the value stored to 'ue_ref_p' is used in the enclosing expression, the value is never actually read from 'ue_ref_p' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2069:9: warning: Access to field 'sctp_assoc_id' results in a dereference of a null pointer (loaded from variable 'source_enb') [clang-analyzer-core.NullDereference] |
|
if (source_enb->sctp_assoc_id != ue_ref_p->sctp_assoc_id) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1960:3: note: 'source_enb' initialized to a null pointer value |
|
enb_description_t* source_enb = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1974:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO(LOG_S1AP, "handover request ack received"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Assuming field 'id' is equal to 0 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Execution continues on line 1980 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1981:45: note: 'ie' is not equal to null |
|
S1ap_HandoverRequestAcknowledgeIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1983:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1983:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Field 'id' is not equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Execution continues on line 1990 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1991:45: note: 'ie' is not equal to null |
|
S1ap_HandoverRequestAcknowledgeIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1994:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1994:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Field 'id' is not equal to 18 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Field 'id' is not equal to 18 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Assuming field 'id' is equal to 18 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Execution continues on line 2002 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2003:45: note: 'ie' is not equal to null |
|
S1ap_HandoverRequestAcknowledgeIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2005:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2005:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2009:21: note: Assuming 'i' is >= 'num_erab' |
|
for (int i = 0; i < num_erab; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2009:5: note: Loop condition is false. Execution continues on line 2032 |
|
for (int i = 0; i < num_erab; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Field 'id' is not equal to 123 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Field 'id' is not equal to 123 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Field 'id' is not equal to 123 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Assuming field 'id' is equal to 123 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Execution continues on line 2032 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2033:45: note: 'ie' is not equal to null |
|
S1ap_HandoverRequestAcknowledgeIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2035:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2035:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2052:7: note: Assuming the condition is false |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2052:3: note: Taking false branch |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2060:7: note: Assuming the condition is true |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2060:3: note: Taking true branch |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2061:19: note: Assuming 'idx' is >= field 'num_elements' |
|
for (idx = 0; idx < enb_array->num_elements; idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2061:5: note: Loop condition is false. Execution continues on line 2067 |
|
for (idx = 0; idx < enb_array->num_elements; idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2069:9: note: Access to field 'sctp_assoc_id' results in a dereference of a null pointer (loaded from variable 'source_enb') |
|
if (source_enb->sctp_assoc_id != ue_ref_p->sctp_assoc_id) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2077:7: warning: Access to field 'enb_id' results in a dereference of a null pointer (loaded from variable 'source_enb') [clang-analyzer-core.NullDereference] |
|
source_enb->enb_id, source_enb->sctp_assoc_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:600:64: note: expanded from macro 'OAILOG_INFO_UE' |
|
OAILOG_LEVEL_INFO, pRoTo, __FILE__, __LINE__, ue_id, ##__VA_ARGS__); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1960:3: note: 'source_enb' initialized to a null pointer value |
|
enb_description_t* source_enb = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1974:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO(LOG_S1AP, "handover request ack received"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Assuming field 'id' is equal to 0 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Execution continues on line 1980 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1981:45: note: 'ie' is not equal to null |
|
S1ap_HandoverRequestAcknowledgeIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1980:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1983:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1983:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Field 'id' is not equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Execution continues on line 1990 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1991:45: note: 'ie' is not equal to null |
|
S1ap_HandoverRequestAcknowledgeIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1990:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1994:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:1994:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Field 'id' is not equal to 18 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Field 'id' is not equal to 18 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Assuming field 'id' is equal to 18 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Execution continues on line 2002 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2003:45: note: 'ie' is not equal to null |
|
S1ap_HandoverRequestAcknowledgeIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2002:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2005:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2005:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2009:21: note: Assuming 'i' is >= 'num_erab' |
|
for (int i = 0; i < num_erab; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2009:5: note: Loop condition is false. Execution continues on line 2032 |
|
for (int i = 0; i < num_erab; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Field 'id' is not equal to 123 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Field 'id' is not equal to 123 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Field 'id' is not equal to 123 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Assuming field 'id' is equal to 123 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Execution continues on line 2032 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2033:45: note: 'ie' is not equal to null |
|
S1ap_HandoverRequestAcknowledgeIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2032:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2035:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2035:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2052:7: note: Assuming the condition is false |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2052:3: note: Taking false branch |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2060:7: note: Assuming the condition is false |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2060:3: note: Taking false branch |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2077:7: note: Access to field 'enb_id' results in a dereference of a null pointer (loaded from variable 'source_enb') |
|
source_enb->enb_id, source_enb->sctp_assoc_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:600:64: note: expanded from macro 'OAILOG_INFO_UE' |
|
OAILOG_LEVEL_INFO, pRoTo, __FILE__, __LINE__, ue_id, ##__VA_ARGS__); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2509:49: warning: Call to 'calloc' has an allocation size of 0 bytes [clang-analyzer-optin.portability.UnixAPI] |
|
e_RABToBeSetup->transportLayerAddress.buf = calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2396:7: note: Assuming 'ho_request_p' is not equal to NULL |
|
if (ho_request_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2396:3: note: Taking false branch |
|
if (ho_request_p == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2401:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO(LOG_S1AP, "Handover Request received"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2404:7: note: Assuming the condition is false |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(ho_request_p->mme_ue_s1ap_id)) == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2404:3: note: Taking false branch |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(ho_request_p->mme_ue_s1ap_id)) == |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2414:7: note: Assuming the condition is false |
|
if ((target_enb = s1ap_state_get_enb( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2414:3: note: Taking false branch |
|
if ((target_enb = s1ap_state_get_enb( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2426:7: note: Assuming field 'next_sctp_stream' is < field 'instreams' |
|
if (target_enb->next_sctp_stream >= target_enb->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2426:3: note: Taking false branch |
|
if (target_enb->next_sctp_stream >= target_enb->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2493:19: note: Assuming 'i' is < field 'no_of_items' |
|
for (int i = 0; i < ho_request_p->e_rab_list.no_of_items; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2493:3: note: Loop condition is true. Entering loop body |
|
for (int i = 0; i < ho_request_p->e_rab_list.no_of_items; i++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2510:9: note: Assuming field 'transport_layer_address' is equal to null |
|
blength(ho_request_p->e_rab_list.item[i].transport_layer_address), |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:215:21: note: expanded from macro 'blength' |
|
#define blength(b) (blengthe((b), 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:214:5: note: expanded from macro 'blengthe' |
|
(((b) == (void*) 0 || (b)->slen < 0) ? (int) (e) : ((b)->slen)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2510:9: note: Left side of '||' is true |
|
blength(ho_request_p->e_rab_list.item[i].transport_layer_address), |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:215:21: note: expanded from macro 'blength' |
|
#define blength(b) (blengthe((b), 0)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:214:22: note: expanded from macro 'blengthe' |
|
(((b) == (void*) 0 || (b)->slen < 0) ? (int) (e) : ((b)->slen)) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2509:49: note: Call to 'calloc' has an allocation size of 0 bytes |
|
e_RABToBeSetup->transportLayerAddress.buf = calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2594:7: warning: Result of 'calloc' is converted to a pointer of type 'uint8_t', which is incompatible with sizeof operand type 'uint16_t' [clang-analyzer-unix.MallocSizeof] |
|
calloc(1, sizeof(uint16_t)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2594:7: note: Result of 'calloc' is converted to a pointer of type 'uint8_t', which is incompatible with sizeof operand type 'uint16_t' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2605:7: warning: Result of 'calloc' is converted to a pointer of type 'uint8_t', which is incompatible with sizeof operand type 'uint16_t' [clang-analyzer-unix.MallocSizeof] |
|
calloc(1, sizeof(uint16_t)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2605:7: note: Result of 'calloc' is converted to a pointer of type 'uint8_t', which is incompatible with sizeof operand type 'uint16_t' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2662:16: warning: Value stored to 'cause' during its initialization is never read [clang-analyzer-deadcode.DeadStores] |
|
S1ap_Cause_t cause = {0}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2662:16: note: Value stored to 'cause' during its initialization is never read |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2941:36: warning: Result of 'calloc' is converted to a pointer of type 'S1ap_HandoverCommandIEs_t', which is incompatible with sizeof operand type 'S1ap_HandoverRequestIEs_t' [clang-analyzer-unix.MallocSizeof] |
|
(S1ap_HandoverCommandIEs_t*) calloc(1, sizeof(S1ap_HandoverRequestIEs_t)); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:2941:36: note: Result of 'calloc' is converted to a pointer of type 'S1ap_HandoverCommandIEs_t', which is incompatible with sizeof operand type 'S1ap_HandoverRequestIEs_t' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3206:9: warning: Access to field 'enb_id' results in a dereference of a null pointer (loaded from variable 'target_enb_association') [clang-analyzer-core.NullDereference] |
|
if (target_enb_association->enb_id != |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3143:3: note: 'target_enb_association' initialized to a null pointer value |
|
enb_description_t* target_enb_association = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Assuming field 'id' is equal to 0 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Execution continues on line 3156 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3157:36: note: 'ie' is not equal to null |
|
S1ap_ENBStatusTransferIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3159:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3159:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3166:7: note: Assuming the condition is false |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3166:3: note: Taking false branch |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3175:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Field 'id' is not equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Execution continues on line 3183 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3184:36: note: 'ie' is not equal to null |
|
S1ap_ENBStatusTransferIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3186:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3186:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3195:7: note: Assuming the condition is true |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3195:3: note: Taking true branch |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3196:19: note: Assuming 'idx' is >= field 'num_elements' |
|
for (idx = 0; idx < enb_array->num_elements; idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3196:5: note: Loop condition is false. Execution continues on line 3204 |
|
for (idx = 0; idx < enb_array->num_elements; idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3206:9: note: Access to field 'enb_id' results in a dereference of a null pointer (loaded from variable 'target_enb_association') |
|
if (target_enb_association->enb_id != |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3233:11: warning: Access to field 'sctp_assoc_id' results in a dereference of a null pointer (loaded from variable 'target_enb_association') [clang-analyzer-core.NullDereference] |
|
&b, target_enb_association->sctp_assoc_id, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3143:3: note: 'target_enb_association' initialized to a null pointer value |
|
enb_description_t* target_enb_association = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Assuming field 'id' is equal to 0 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Execution continues on line 3156 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3157:36: note: 'ie' is not equal to null |
|
S1ap_ENBStatusTransferIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3156:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3159:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3159:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3166:7: note: Assuming the condition is false |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3166:3: note: Taking false branch |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3175:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Field 'id' is not equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Execution continues on line 3183 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3184:36: note: 'ie' is not equal to null |
|
S1ap_ENBStatusTransferIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3183:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3186:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3186:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3195:7: note: Assuming the condition is false |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3195:3: note: Taking false branch |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3221:7: note: Assuming the condition is false |
|
if (s1ap_mme_encode_pdu(pdu, &buffer, &length) < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3221:3: note: Taking false branch |
|
if (s1ap_mme_encode_pdu(pdu, &buffer, &length) < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3233:11: note: Access to field 'sctp_assoc_id' results in a dereference of a null pointer (loaded from variable 'target_enb_association') |
|
&b, target_enb_association->sctp_assoc_id, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3406:21: warning: loop variable has narrower type 'uint16_t' (aka 'unsigned short') than iteration's upper bound 'uint32_t' (aka 'unsigned int') [bugprone-too-small-loop-variable] |
|
for (index = 0; index < num_erab; ++index) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3461:5: warning: Access to field 'bits_unused' results in a dereference of a null pointer [clang-analyzer-core.NullDereference] |
|
BIT_STRING_TO_INT16( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:241:14: note: expanded from macro 'BIT_STRING_TO_INT16' |
|
DevCheck((aSN)->bits_unused == 0, (aSN)->bits_unused, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:102:7: note: expanded from macro 'DevCheck' |
|
cOND, _ASSERT_FINAL_, \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3266:7: note: Assuming 'enb_association' is not equal to NULL |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3266:3: note: Taking false branch |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Assuming field 'id' is equal to 88 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Execution continues on line 3277 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3278:36: note: 'ie' is not equal to null |
|
S1ap_PathSwitchRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3280:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3280:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Field 'id' is not equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Execution continues on line 3286 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3287:36: note: 'ie' is not equal to null |
|
S1ap_PathSwitchRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3290:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3290:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3297:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG_UE( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:476:3: note: expanded from macro 'OAILOG_DEBUG_UE' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3309:7: note: Assuming the condition is false |
|
if (true == is_all_erabId_same(container)) { |
|
^ |
|
/usr/lib/llvm-11/lib/clang/11.0.0/include/stdbool.h:16:14: note: expanded from macro 'true' |
|
#define true 1 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3309:3: note: Taking false branch |
|
if (true == is_all_erabId_same(container)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3319:7: note: Assuming the condition is false |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3319:3: note: Taking false branch |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid(mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3333:9: note: Assuming 'new_ue_ref_p' is equal to NULL |
|
if (new_ue_ref_p != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3333:5: note: Taking false branch |
|
if (new_ue_ref_p != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3345:9: note: Assuming the condition is false |
|
if ((new_ue_ref_p = s1ap_new_ue(state, assoc_id, enb_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3345:5: note: Taking false branch |
|
if ((new_ue_ref_p = s1ap_new_ue(state, assoc_id, enb_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3367:9: note: Assuming field 'next_sctp_stream' is < field 'instreams' |
|
if (enb_association->next_sctp_stream >= enb_association->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3367:5: note: Taking false branch |
|
if (enb_association->next_sctp_stream >= enb_association->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3383:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG_UE( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:476:3: note: expanded from macro 'OAILOG_DEBUG_UE' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3392:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3392:5: note: Assuming field 'id' is equal to 22 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3392:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3392:5: note: Execution continues on line 3392 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3393:38: note: 'ie' is not equal to null |
|
S1ap_PathSwitchRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3392:5: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3392:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3396:10: note: 'ie' is non-null |
|
if (!ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3396:5: note: Taking false branch |
|
if (!ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3406:21: note: Assuming 'index' is >= 'num_erab' |
|
for (index = 0; index < num_erab; ++index) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3406:5: note: Loop condition is false. Execution continues on line 3425 |
|
for (index = 0; index < num_erab; ++index) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Field 'id' is not equal to 100 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Assuming field 'id' is equal to 100 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Execution continues on line 3425 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3426:38: note: 'ie' is not equal to null |
|
S1ap_PathSwitchRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3425:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3429:10: note: 'ie' is non-null |
|
if (!ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3429:5: note: Taking false branch |
|
if (!ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3434:11: note: Assuming field 'size' is equal to 3 |
|
if (!(ie->value.choice.EUTRAN_CGI.pLMNidentity.size == 3)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3434:5: note: Taking false branch |
|
if (!(ie->value.choice.EUTRAN_CGI.pLMNidentity.size == 3)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3438:5: note: Field 'size' is equal to 3 |
|
TBCD_TO_PLMN_T(&ie->value.choice.EUTRAN_CGI.pLMNidentity, &ecgi.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:308:29: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
DevAssert((tBCDsTRING)->size == 3); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3438:5: note: Taking false branch |
|
TBCD_TO_PLMN_T(&ie->value.choice.EUTRAN_CGI.pLMNidentity, &ecgi.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:308:5: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
DevAssert((tBCDsTRING)->size == 3); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:115:25: note: expanded from macro 'DevAssert' |
|
#define DevAssert(cOND) _Assert_(cOND, _ASSERT_FINAL_, "") |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3438:5: note: Loop condition is false. Exiting loop |
|
TBCD_TO_PLMN_T(&ie->value.choice.EUTRAN_CGI.pLMNidentity, &ecgi.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:308:5: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
DevAssert((tBCDsTRING)->size == 3); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:115:25: note: expanded from macro 'DevAssert' |
|
#define DevAssert(cOND) _Assert_(cOND, _ASSERT_FINAL_, "") |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3438:5: note: Assuming the condition is false |
|
TBCD_TO_PLMN_T(&ie->value.choice.EUTRAN_CGI.pLMNidentity, &ecgi.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:309:9: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
if (((tBCDsTRING)->buf[1] & 0xf0) == 0xf0) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3438:5: note: Taking false branch |
|
TBCD_TO_PLMN_T(&ie->value.choice.EUTRAN_CGI.pLMNidentity, &ecgi.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:309:5: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
if (((tBCDsTRING)->buf[1] & 0xf0) == 0xf0) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3438:5: note: Loop condition is false. Exiting loop |
|
TBCD_TO_PLMN_T(&ie->value.choice.EUTRAN_CGI.pLMNidentity, &ecgi.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:307:3: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3439:5: note: Assuming field 'bits_unused' is equal to 4 |
|
BIT_STRING_TO_CELL_IDENTITY( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:247:14: note: expanded from macro 'BIT_STRING_TO_CELL_IDENTITY' |
|
DevCheck((aSN)->bits_unused == 4, (aSN)->bits_unused, 4, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:102:7: note: expanded from macro 'DevCheck' |
|
cOND, _ASSERT_FINAL_, \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3439:5: note: Taking false branch |
|
BIT_STRING_TO_CELL_IDENTITY( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:247:5: note: expanded from macro 'BIT_STRING_TO_CELL_IDENTITY' |
|
DevCheck((aSN)->bits_unused == 4, (aSN)->bits_unused, 4, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:101:3: note: expanded from macro 'DevCheck' |
|
_Assert_( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3439:5: note: Loop condition is false. Exiting loop |
|
BIT_STRING_TO_CELL_IDENTITY( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:247:5: note: expanded from macro 'BIT_STRING_TO_CELL_IDENTITY' |
|
DevCheck((aSN)->bits_unused == 4, (aSN)->bits_unused, 4, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:101:3: note: expanded from macro 'DevCheck' |
|
_Assert_( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3439:5: note: Loop condition is false. Exiting loop |
|
BIT_STRING_TO_CELL_IDENTITY( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:246:3: note: expanded from macro 'BIT_STRING_TO_CELL_IDENTITY' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Field 'id' is not equal to 67 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Field 'id' is not equal to 67 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Assuming field 'id' is equal to 67 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Execution continues on line 3443 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3444:38: note: 'ie' is not equal to null |
|
S1ap_PathSwitchRequestIEs_t, ie, container, S1ap_ProtocolIE_ID_id_TAI, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3443:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3446:10: note: 'ie' is non-null |
|
if (!ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3446:5: note: Taking false branch |
|
if (!ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3450:5: note: Assuming field 'size' is equal to 2 |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:217:14: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
DevCheck((aSN)->size == 2, (aSN)->size, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:102:7: note: expanded from macro 'DevCheck' |
|
cOND, _ASSERT_FINAL_, \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3450:5: note: Taking false branch |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:217:5: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
DevCheck((aSN)->size == 2, (aSN)->size, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:101:3: note: expanded from macro 'DevCheck' |
|
_Assert_( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3450:5: note: Loop condition is false. Exiting loop |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:217:5: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
DevCheck((aSN)->size == 2, (aSN)->size, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:101:3: note: expanded from macro 'DevCheck' |
|
_Assert_( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3450:5: note: Loop condition is false. Exiting loop |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:218:5: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
BUFFER_TO_INT16((aSN)->buf, x); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:130:3: note: expanded from macro 'BUFFER_TO_INT16' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3450:5: note: Loop condition is false. Exiting loop |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:216:3: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3451:11: note: Assuming field 'size' is equal to 3 |
|
if (!(ie->value.choice.EUTRAN_CGI.pLMNidentity.size == 3)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3451:5: note: Taking false branch |
|
if (!(ie->value.choice.EUTRAN_CGI.pLMNidentity.size == 3)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3455:5: note: Assuming field 'size' is equal to 3 |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:308:15: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
DevAssert((tBCDsTRING)->size == 3); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:115:34: note: expanded from macro 'DevAssert' |
|
#define DevAssert(cOND) _Assert_(cOND, _ASSERT_FINAL_, "") |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3455:5: note: Taking false branch |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:308:5: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
DevAssert((tBCDsTRING)->size == 3); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:115:25: note: expanded from macro 'DevAssert' |
|
#define DevAssert(cOND) _Assert_(cOND, _ASSERT_FINAL_, "") |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3455:5: note: Loop condition is false. Exiting loop |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:308:5: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
DevAssert((tBCDsTRING)->size == 3); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:115:25: note: expanded from macro 'DevAssert' |
|
#define DevAssert(cOND) _Assert_(cOND, _ASSERT_FINAL_, "") |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3455:5: note: Assuming the condition is false |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:309:9: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
if (((tBCDsTRING)->buf[1] & 0xf0) == 0xf0) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3455:5: note: Taking false branch |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:309:5: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
if (((tBCDsTRING)->buf[1] & 0xf0) == 0xf0) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3455:5: note: Loop condition is false. Exiting loop |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:307:3: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3459:38: note: Null pointer value stored to 'ie' |
|
S1ap_PathSwitchRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3458:5: note: Loop condition is false. Execution continues on line 3458 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3459:38: note: 'ie' is equal to null |
|
S1ap_PathSwitchRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3458:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3458:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3458:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3458:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3461:5: note: Access to field 'bits_unused' results in a dereference of a null pointer |
|
BIT_STRING_TO_INT16( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:241:14: note: expanded from macro 'BIT_STRING_TO_INT16' |
|
DevCheck((aSN)->bits_unused == 0, (aSN)->bits_unused, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:102:7: note: expanded from macro 'DevCheck' |
|
cOND, _ASSERT_FINAL_, \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4145:11: warning: Access to field 'present' results in a dereference of a null pointer (loaded from variable 'resetType') [clang-analyzer-core.NullDereference] |
|
switch (resetType->present) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4111:7: note: Assuming 'enb_association' is not equal to NULL |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4111:3: note: Taking false branch |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4116:7: note: Assuming field 's1_state' is equal to S1AP_READY |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4116:3: note: Taking false branch |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4127:7: note: Assuming field 'nb_ue_associated' is not equal to 0 |
|
if (enb_association->nb_ue_associated == 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4127:3: note: Taking false branch |
|
if (enb_association->nb_ue_associated == 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4141:24: note: Null pointer value stored to 'ie' |
|
S1ap_ResetIEs_t, ie, container, S1ap_ProtocolIE_ID_id_ResetType, true); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Loop condition is false. Execution continues on line 4140 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4141:24: note: 'ie' is equal to null |
|
S1ap_ResetIEs_t, ie, container, S1ap_ProtocolIE_ID_id_ResetType, true); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4143:3: note: 'resetType' initialized to a null pointer value |
|
S1ap_ResetType_t* resetType = &ie->value.choice.ResetType; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4145:11: note: Access to field 'present' results in a dereference of a null pointer (loaded from variable 'resetType') |
|
switch (resetType->present) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4195:37: warning: Call to 'calloc' has an allocation size of 0 bytes [clang-analyzer-optin.portability.UnixAPI] |
|
reset_req->ue_to_reset_list = calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4111:7: note: Assuming 'enb_association' is not equal to NULL |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4111:3: note: Taking false branch |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4116:7: note: Assuming field 's1_state' is equal to S1AP_READY |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4116:3: note: Taking false branch |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4127:7: note: Assuming field 'nb_ue_associated' is equal to 0 |
|
if (enb_association->nb_ue_associated == 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4127:3: note: Taking true branch |
|
if (enb_association->nb_ue_associated == 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4130:5: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Assuming field 'id' is equal to 92 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Execution continues on line 4140 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4141:24: note: 'ie' is not equal to null |
|
S1ap_ResetIEs_t, ie, container, S1ap_ProtocolIE_ID_id_ResetType, true); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4140:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4145:3: note: Control jumps to 'case S1ap_ResetType_PR_s1_Interface:' at line 4146 |
|
switch (resetType->present) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4148:7: note: Execution continues on line 4160 |
|
break; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4160:7: note: 's1ap_reset_type' is not equal to RESET_PARTIAL |
|
if (s1ap_reset_type == RESET_PARTIAL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4160:3: note: Taking false branch |
|
if (s1ap_reset_type == RESET_PARTIAL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4189:3: note: Control jumps to 'case RESET_ALL:' at line 4190 |
|
switch (s1ap_reset_type) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4195:37: note: Call to 'calloc' has an allocation size of 0 bytes |
|
reset_req->ue_to_reset_list = calloc( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4308:18: warning: Although the value stored to 'ue_ref_p' is used in the enclosing expression, the value is never actually read from 'ue_ref_p' [clang-analyzer-deadcode.DeadStores] |
|
if ((ue_ref_p = s1ap_state_get_ue_enbid( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4308:18: note: Although the value stored to 'ue_ref_p' is used in the enclosing expression, the value is never actually read from 'ue_ref_p' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4569:12: warning: Although the value stored to 'is_tai_found' is used in the enclosing expression, the value is never actually read from 'is_tai_found' [clang-analyzer-deadcode.DeadStores] |
|
if ((is_tai_found = s1ap_paging_compare_ta_lists( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4569:12: note: Although the value stored to 'is_tai_found' is used in the enclosing expression, the value is never actually read from 'is_tai_found' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4615:20: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
mme_ue_s1ap_id = ie->value.choice.MME_UE_S1AP_ID; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4613:46: note: Null pointer value stored to 'ie' |
|
S1ap_E_RABModificationIndicationIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Loop condition is false. Execution continues on line 4612 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4613:46: note: 'ie' is equal to null |
|
S1ap_E_RABModificationIndicationIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4615:20: note: Dereference of null pointer |
|
mme_ue_s1ap_id = ie->value.choice.MME_UE_S1AP_ID; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4622:26: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
(enb_ue_s1ap_id_t)(ie->value.choice.ENB_UE_S1AP_ID & ENB_UE_S1AP_ID_MASK); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Assuming field 'id' is equal to 0 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Execution continues on line 4612 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4613:46: note: 'ie' is not equal to null |
|
S1ap_E_RABModificationIndicationIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4618:46: note: Null pointer value stored to 'ie' |
|
S1ap_E_RABModificationIndicationIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Loop condition is false. Execution continues on line 4617 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4618:46: note: 'ie' is equal to null |
|
S1ap_E_RABModificationIndicationIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4622:26: note: Dereference of null pointer |
|
(enb_ue_s1ap_id_t)(ie->value.choice.ENB_UE_S1AP_ID & ENB_UE_S1AP_ID_MASK); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4655:18: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
int num_erab = e_rab_list->list.count; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Assuming field 'id' is equal to 0 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Execution continues on line 4612 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4613:46: note: 'ie' is not equal to null |
|
S1ap_E_RABModificationIndicationIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4612:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Field 'id' is not equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Execution continues on line 4617 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4618:46: note: 'ie' is not equal to null |
|
S1ap_E_RABModificationIndicationIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4617:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4624:7: note: Assuming the condition is false |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid((uint32_t) mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4624:3: note: Taking false branch |
|
if ((ue_ref_p = s1ap_state_get_ue_mmeid((uint32_t) mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4633:7: note: Assuming 'enb_ue_s1ap_id' is equal to field 'enb_ue_s1ap_id' |
|
if (ue_ref_p->enb_ue_s1ap_id != enb_ue_s1ap_id) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4633:3: note: Taking false branch |
|
if (ue_ref_p->enb_ue_s1ap_id != enb_ue_s1ap_id) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4643:15: note: Assuming 'message_p' is not equal to null |
|
AssertFatal(message_p != NULL, "itti_alloc_new_message Failed"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:12: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4643:3: note: Taking false branch |
|
AssertFatal(message_p != NULL, "itti_alloc_new_message Failed"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4643:3: note: Loop condition is false. Exiting loop |
|
AssertFatal(message_p != NULL, "itti_alloc_new_message Failed"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:99:3: note: expanded from macro 'AssertFatal' |
|
_Assert_(cond, _ASSERT_FINAL_, format, ##__VA_ARGS__) |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4651:46: note: Null pointer value stored to 'ie' |
|
S1ap_E_RABModificationIndicationIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4650:3: note: Loop condition is false. Execution continues on line 4650 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4651:46: note: 'ie' is equal to null |
|
S1ap_E_RABModificationIndicationIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4650:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4650:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4650:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4650:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4653:3: note: 'e_rab_list' initialized to a null pointer value |
|
const S1ap_E_RABToBeModifiedListBearerModInd_t* const e_rab_list = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4655:18: note: Dereference of null pointer |
|
int num_erab = e_rab_list->list.count; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4912:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
if (targeteNB_ID->global_ENB_ID.eNB_ID.present == S1ap_ENB_ID_PR_homeENB_ID) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4886:43: note: Null pointer value stored to 'ie' |
|
S1ap_ENBConfigurationTransferIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Loop condition is false. Execution continues on line 4885 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4886:43: note: 'ie' is equal to null |
|
S1ap_ENBConfigurationTransferIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:422:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_DEBUG( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4889:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4893:7: note: Assuming 'enb_association' is not equal to NULL |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4893:3: note: Taking false branch |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4900:7: note: Assuming field 's1_state' is equal to S1AP_READY |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4900:3: note: Taking false branch |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4910:3: note: Null pointer value stored to 'targeteNB_ID' |
|
targeteNB_ID = &ie->value.choice.SONConfigurationTransfer.targeteNB_ID; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4912:7: note: Dereference of null pointer |
|
if (targeteNB_ID->global_ENB_ID.eNB_ID.present == S1ap_ENB_ID_PR_homeENB_ID) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4939:9: warning: Access to field 'enb_id' results in a dereference of a null pointer (loaded from variable 'target_enb_association') [clang-analyzer-core.NullDereference] |
|
if (target_enb_association->enb_id != target_enb_id) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4872:3: note: 'target_enb_association' initialized to a null pointer value |
|
enb_description_t* target_enb_association = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Assuming field 'id' is equal to 129 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Execution continues on line 4885 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4886:43: note: 'ie' is not equal to null |
|
S1ap_ENBConfigurationTransferIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4889:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4893:7: note: Assuming 'enb_association' is not equal to NULL |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4893:3: note: Taking false branch |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4900:7: note: Assuming field 's1_state' is equal to S1AP_READY |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4900:3: note: Taking false branch |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4912:7: note: Assuming field 'present' is not equal to S1ap_ENB_ID_PR_homeENB_ID |
|
if (targeteNB_ID->global_ENB_ID.eNB_ID.present == S1ap_ENB_ID_PR_homeENB_ID) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4912:3: note: Taking false branch |
|
if (targeteNB_ID->global_ENB_ID.eNB_ID.present == S1ap_ENB_ID_PR_homeENB_ID) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4925:5: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO(LOG_S1AP, "macro eNB id: %u\n", target_enb_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4929:7: note: Assuming the condition is true |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4929:3: note: Taking true branch |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4930:19: note: Assuming 'idx' is >= field 'num_elements' |
|
for (idx = 0; idx < enb_array->num_elements; idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4930:5: note: Loop condition is false. Execution continues on line 4937 |
|
for (idx = 0; idx < enb_array->num_elements; idx++) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4939:9: note: Access to field 'enb_id' results in a dereference of a null pointer (loaded from variable 'target_enb_association') |
|
if (target_enb_association->enb_id != target_enb_id) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4966:11: warning: Access to field 'sctp_assoc_id' results in a dereference of a null pointer (loaded from variable 'target_enb_association') [clang-analyzer-core.NullDereference] |
|
&b, target_enb_association->sctp_assoc_id, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4872:3: note: 'target_enb_association' initialized to a null pointer value |
|
enb_description_t* target_enb_association = NULL; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Assuming field 'id' is equal to 129 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Execution continues on line 4885 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4886:43: note: 'ie' is not equal to null |
|
S1ap_ENBConfigurationTransferIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4885:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4889:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4893:7: note: Assuming 'enb_association' is not equal to NULL |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4893:3: note: Taking false branch |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4900:7: note: Assuming field 's1_state' is equal to S1AP_READY |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4900:3: note: Taking false branch |
|
if (enb_association->s1_state != S1AP_READY) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4912:7: note: Assuming field 'present' is not equal to S1ap_ENB_ID_PR_homeENB_ID |
|
if (targeteNB_ID->global_ENB_ID.eNB_ID.present == S1ap_ENB_ID_PR_homeENB_ID) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4912:3: note: Taking false branch |
|
if (targeteNB_ID->global_ENB_ID.eNB_ID.present == S1ap_ENB_ID_PR_homeENB_ID) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4925:5: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO(LOG_S1AP, "macro eNB id: %u\n", target_enb_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4929:7: note: Assuming the condition is false |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4929:3: note: Taking false branch |
|
if ((enb_array = hashtable_ts_get_elements(&state->enbs)) != NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4953:7: note: Assuming 'enc_rval' is >= 0 |
|
if (enc_rval < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4953:3: note: Taking false branch |
|
if (enc_rval < 0) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:4966:11: note: Access to field 'sctp_assoc_id' results in a dereference of a null pointer (loaded from variable 'target_enb_association') |
|
&b, target_enb_association->sctp_assoc_id, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5014:18: warning: loop variable has narrower type 'uint8_t' (aka 'unsigned char') than iteration's upper bound 'int' [bugprone-too-small-loop-variable] |
|
for (item = 1; item < e_rab_to_be_switched_dl_list->list.count; ++item) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5140:47: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
S1ap_PathSwitchRequestFailureIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3266:7: note: Assuming 'enb_association' is not equal to NULL |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3266:3: note: Taking false branch |
|
if (enb_association == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Assuming field 'id' is equal to 88 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Execution continues on line 3277 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3278:36: note: 'ie' is not equal to null |
|
S1ap_PathSwitchRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3277:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3280:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3280:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Field 'id' is not equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Execution continues on line 3286 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3287:36: note: 'ie' is not equal to null |
|
S1ap_PathSwitchRequestIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3286:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3290:7: note: 'ie' is non-null |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3290:3: note: Taking true branch |
|
if (ie) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3297:3: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG_UE( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:476:3: note: expanded from macro 'OAILOG_DEBUG_UE' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3309:7: note: Assuming the condition is true |
|
if (true == is_all_erabId_same(container)) { |
|
^ |
|
/usr/lib/llvm-11/lib/clang/11.0.0/include/stdbool.h:16:14: note: expanded from macro 'true' |
|
#define true 1 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3309:3: note: Taking true branch |
|
if (true == is_all_erabId_same(container)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:3314:5: note: Calling 's1ap_handle_path_switch_req_failure' |
|
s1ap_handle_path_switch_req_failure( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5131:3: note: 'pdu' initialized to a null pointer value |
|
S1ap_S1AP_PDU_t* pdu = {0}; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5136:3: note: Null pointer value stored to 'container' |
|
container = |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5140:47: note: Dereference of null pointer |
|
S1ap_PathSwitchRequestFailureIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:16: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5144:8: warning: Although the value stored to 'ue_ref_p' is used in the enclosing expression, the value is never actually read from 'ue_ref_p' [clang-analyzer-deadcode.DeadStores] |
|
(ue_ref_p = s1ap_state_get_ue_mmeid((uint32_t) mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5144:8: note: Although the value stored to 'ue_ref_p' is used in the enclosing expression, the value is never actually read from 'ue_ref_p' |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5230:20: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
mme_ue_s1ap_id = ie->value.choice.MME_UE_S1AP_ID; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5228:39: note: Null pointer value stored to 'ie' |
|
S1ap_E_RABReleaseResponseIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Loop condition is false. Execution continues on line 5227 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5228:39: note: 'ie' is equal to null |
|
S1ap_E_RABReleaseResponseIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5230:20: note: Dereference of null pointer |
|
mme_ue_s1ap_id = ie->value.choice.MME_UE_S1AP_ID; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5246:26: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
(enb_ue_s1ap_id_t)(ie->value.choice.ENB_UE_S1AP_ID & ENB_UE_S1AP_ID_MASK); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Assuming field 'id' is equal to 0 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Execution continues on line 5227 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5228:39: note: 'ie' is not equal to null |
|
S1ap_E_RABReleaseResponseIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5227:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5232:8: note: 'ie' is non-null |
|
if ((ie) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5232:7: note: Left side of '&&' is true |
|
if ((ie) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5233:7: note: Assuming the condition is false |
|
(ue_ref_p = s1ap_state_get_ue_mmeid((uint32_t) mme_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5232:3: note: Taking false branch |
|
if ((ie) && |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5242:39: note: Null pointer value stored to 'ie' |
|
S1ap_E_RABReleaseResponseIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5241:3: note: Loop condition is false. Execution continues on line 5241 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5242:39: note: 'ie' is equal to null |
|
S1ap_E_RABReleaseResponseIEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5241:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5241:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5241:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5241:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_handlers.c:5246:26: note: Dereference of null pointer |
|
(enb_ue_s1ap_id_t)(ie->value.choice.ENB_UE_S1AP_ID & ENB_UE_S1AP_ID_MASK); |
|
^ |
|
12558 warnings generated. |
|
Suppressed 12522 warnings (12498 in non-user code, 24 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme.c |
|
12166 warnings generated. |
|
Suppressed 12166 warnings (12143 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_itti_messaging.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_itti_messaging.c:320:58: warning: 'src_tgt_container' declared with a const-qualified typedef; results in the type being 'struct tagbstring *const' instead of 'const struct tagbstring *' [misc-misplaced-const] |
|
const mme_ue_s1ap_id_t mme_ue_s1ap_id, const bstring src_tgt_container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:38:28: note: typedef declared here |
|
typedef struct tagbstring* bstring; |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_itti_messaging.c:350:58: warning: 'tgt_src_container' declared with a const-qualified typedef; results in the type being 'struct tagbstring *const' instead of 'const struct tagbstring *' [misc-misplaced-const] |
|
const sctp_assoc_id_t source_assoc_id, const bstring tgt_src_container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/lib/bstr/bstrlib.h:38:28: note: typedef declared here |
|
typedef struct tagbstring* bstring; |
|
^ |
|
10795 warnings generated. |
|
Suppressed 10793 warnings (10770 in non-user code, 23 with check filters). |
|
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. |
|
clang-tidy -checks=-*,clang-analyzer-security*,android-*,cert-*,clang-analyzer-*,concurrency,misc-*,-misc-unused-parameters,bugprone-* -p=/workspaces/magma/lte/gateway/c/oai/build/ /workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:105:26: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
(enb_ue_s1ap_id_t) ie->value.choice.ENB_UE_S1AP_ID, assoc_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:433:63: note: expanded from macro 'OAILOG_INFO' |
|
NULL, OAILOG_LEVEL_INFO, pRoTo, __FILE__, __LINE__, ##__VA_ARGS__); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:98:36: note: Null pointer value stored to 'ie' |
|
S1ap_InitialUEMessage_IEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Loop condition is false. Execution continues on line 97 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:98:36: note: 'ie' is equal to null |
|
S1ap_InitialUEMessage_IEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:105:26: note: Dereference of null pointer |
|
(enb_ue_s1ap_id_t) ie->value.choice.ENB_UE_S1AP_ID, assoc_id); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:433:63: note: expanded from macro 'OAILOG_INFO' |
|
NULL, OAILOG_LEVEL_INFO, pRoTo, __FILE__, __LINE__, ##__VA_ARGS__); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:190:5: warning: Access to field 'size' results in a dereference of a null pointer [clang-analyzer-core.NullDereference] |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:217:14: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
DevCheck((aSN)->size == 2, (aSN)->size, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:102:7: note: expanded from macro 'DevCheck' |
|
cOND, _ASSERT_FINAL_, \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Execution continues on line 97 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:98:36: note: 'ie' is not equal to null |
|
S1ap_InitialUEMessage_IEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:101:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:107:7: note: Assuming 's1ap_last_msg_latency' is <= 's1ap_zmq_th' |
|
if (s1ap_last_msg_latency > S1AP_ZMQ_LATENCY_TH) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:107:3: note: Taking false branch |
|
if (s1ap_last_msg_latency > S1AP_ZMQ_LATENCY_TH) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:117:7: note: Assuming the condition is false |
|
if ((eNB_ref = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:117:3: note: Taking false branch |
|
if ((eNB_ref = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:124:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:131:7: note: Assuming 'ue_ref' is equal to NULL |
|
if (ue_ref == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:131:3: note: Taking true branch |
|
if (ue_ref == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:145:9: note: Assuming the condition is false |
|
if ((ue_ref = s1ap_new_ue(state, assoc_id, enb_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:145:5: note: Taking false branch |
|
if ((ue_ref = s1ap_new_ue(state, assoc_id, enb_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:155:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG(LOG_S1AP, "Creating new UE Ref on S1ap"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:182:9: note: Assuming field 'next_sctp_stream' is < field 'instreams' |
|
if (eNB_ref->next_sctp_stream >= eNB_ref->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:182:5: note: Taking false branch |
|
if (eNB_ref->next_sctp_stream >= eNB_ref->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:188:38: note: Null pointer value stored to 'ie' |
|
S1ap_InitialUEMessage_IEs_t, ie, container, S1ap_ProtocolIE_ID_id_TAI, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Loop condition is false. Execution continues on line 187 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:188:38: note: 'ie' is equal to null |
|
S1ap_InitialUEMessage_IEs_t, ie, container, S1ap_ProtocolIE_ID_id_TAI, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:190:5: note: Access to field 'size' results in a dereference of a null pointer |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:217:14: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
DevCheck((aSN)->size == 2, (aSN)->size, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:102:7: note: expanded from macro 'DevCheck' |
|
cOND, _ASSERT_FINAL_, \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:201:11: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
if (!(ie->value.choice.EUTRAN_CGI.pLMNidentity.size == 3)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Execution continues on line 97 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:98:36: note: 'ie' is not equal to null |
|
S1ap_InitialUEMessage_IEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:101:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:107:7: note: Assuming 's1ap_last_msg_latency' is <= 's1ap_zmq_th' |
|
if (s1ap_last_msg_latency > S1AP_ZMQ_LATENCY_TH) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:107:3: note: Taking false branch |
|
if (s1ap_last_msg_latency > S1AP_ZMQ_LATENCY_TH) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:117:7: note: Assuming the condition is false |
|
if ((eNB_ref = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:117:3: note: Taking false branch |
|
if ((eNB_ref = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:124:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:131:7: note: Assuming 'ue_ref' is equal to NULL |
|
if (ue_ref == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:131:3: note: Taking true branch |
|
if (ue_ref == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:145:9: note: Assuming the condition is false |
|
if ((ue_ref = s1ap_new_ue(state, assoc_id, enb_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:145:5: note: Taking false branch |
|
if ((ue_ref = s1ap_new_ue(state, assoc_id, enb_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:155:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG(LOG_S1AP, "Creating new UE Ref on S1ap"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:182:9: note: Assuming field 'next_sctp_stream' is < field 'instreams' |
|
if (eNB_ref->next_sctp_stream >= eNB_ref->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:182:5: note: Taking false branch |
|
if (eNB_ref->next_sctp_stream >= eNB_ref->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Field 'id' is not equal to 67 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Assuming field 'id' is equal to 67 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Execution continues on line 187 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:188:38: note: 'ie' is not equal to null |
|
S1ap_InitialUEMessage_IEs_t, ie, container, S1ap_ProtocolIE_ID_id_TAI, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:190:5: note: Assuming field 'size' is equal to 2 |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:217:14: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
DevCheck((aSN)->size == 2, (aSN)->size, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:102:7: note: expanded from macro 'DevCheck' |
|
cOND, _ASSERT_FINAL_, \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:11: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:190:5: note: Taking false branch |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:217:5: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
DevCheck((aSN)->size == 2, (aSN)->size, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:101:3: note: expanded from macro 'DevCheck' |
|
_Assert_( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:190:5: note: Loop condition is false. Exiting loop |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:217:5: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
DevCheck((aSN)->size == 2, (aSN)->size, 0, 0); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:101:3: note: expanded from macro 'DevCheck' |
|
_Assert_( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:190:5: note: Loop condition is false. Exiting loop |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:218:5: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
BUFFER_TO_INT16((aSN)->buf, x); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:130:3: note: expanded from macro 'BUFFER_TO_INT16' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:190:5: note: Loop condition is false. Exiting loop |
|
OCTET_STRING_TO_TAC(&ie->value.choice.TAI.tAC, tai.tac); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:428:29: note: expanded from macro 'OCTET_STRING_TO_TAC' |
|
#define OCTET_STRING_TO_TAC OCTET_STRING_TO_INT16 |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:216:3: note: expanded from macro 'OCTET_STRING_TO_INT16' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:191:11: note: Assuming field 'size' is equal to 3 |
|
if (!(ie->value.choice.TAI.pLMNidentity.size == 3)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:191:5: note: Taking false branch |
|
if (!(ie->value.choice.TAI.pLMNidentity.size == 3)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:195:5: note: Field 'size' is equal to 3 |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:308:29: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
DevAssert((tBCDsTRING)->size == 3); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:195:5: note: Taking false branch |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:308:5: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
DevAssert((tBCDsTRING)->size == 3); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:115:25: note: expanded from macro 'DevAssert' |
|
#define DevAssert(cOND) _Assert_(cOND, _ASSERT_FINAL_, "") |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:70:5: note: expanded from macro '_Assert_' |
|
if (!(cOND)) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:195:5: note: Loop condition is false. Exiting loop |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:308:5: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
DevAssert((tBCDsTRING)->size == 3); \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:115:25: note: expanded from macro 'DevAssert' |
|
#define DevAssert(cOND) _Assert_(cOND, _ASSERT_FINAL_, "") |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/assertions.h:69:3: note: expanded from macro '_Assert_' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:195:5: note: Assuming the condition is false |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:309:9: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
if (((tBCDsTRING)->buf[1] & 0xf0) == 0xf0) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:195:5: note: Taking false branch |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:309:5: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
if (((tBCDsTRING)->buf[1] & 0xf0) == 0xf0) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:195:5: note: Loop condition is false. Exiting loop |
|
TBCD_TO_PLMN_T(&ie->value.choice.TAI.pLMNidentity, &tai.plmn); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/conversions.h:307:3: note: expanded from macro 'TBCD_TO_PLMN_T' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:199:38: note: Null pointer value stored to 'ie' |
|
S1ap_InitialUEMessage_IEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:405:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ie = NULL; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:198:5: note: Loop condition is false. Execution continues on line 198 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:199:38: note: 'ie' is equal to null |
|
S1ap_InitialUEMessage_IEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:198:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:198:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:416:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (mandatory) \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:198:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:417:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
OAILOG_ERROR( \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:416:3: note: expanded from macro 'OAILOG_ERROR' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:198:5: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:201:11: note: Dereference of null pointer |
|
if (!(ie->value.choice.EUTRAN_CGI.pLMNidentity.size == 3)) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:251:9: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] |
|
ie->value.choice.NAS_PDU.buf, ie->value.choice.NAS_PDU.size, &tai, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Assuming field 'id' is equal to 8 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Execution continues on line 97 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:98:36: note: 'ie' is not equal to null |
|
S1ap_InitialUEMessage_IEs_t, ie, container, |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:415:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if (ie == NULL) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:97:3: note: Loop condition is false. Exiting loop |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:403:3: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:101:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:107:7: note: Assuming 's1ap_last_msg_latency' is <= 's1ap_zmq_th' |
|
if (s1ap_last_msg_latency > S1AP_ZMQ_LATENCY_TH) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:107:3: note: Taking false branch |
|
if (s1ap_last_msg_latency > S1AP_ZMQ_LATENCY_TH) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:117:7: note: Assuming the condition is false |
|
if ((eNB_ref = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:117:3: note: Taking false branch |
|
if ((eNB_ref = s1ap_state_get_enb(state, assoc_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:124:3: note: Loop condition is false. Exiting loop |
|
OAILOG_INFO( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:431:3: note: expanded from macro 'OAILOG_INFO' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:131:7: note: Assuming 'ue_ref' is equal to NULL |
|
if (ue_ref == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:131:3: note: Taking true branch |
|
if (ue_ref == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:145:9: note: Assuming the condition is false |
|
if ((ue_ref = s1ap_new_ue(state, assoc_id, enb_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:145:5: note: Taking false branch |
|
if ((ue_ref = s1ap_new_ue(state, assoc_id, enb_ue_s1ap_id)) == NULL) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:155:5: note: Loop condition is false. Exiting loop |
|
OAILOG_DEBUG(LOG_S1AP, "Creating new UE Ref on S1ap"); |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/common/log.h:471:3: note: expanded from macro 'OAILOG_DEBUG' |
|
do { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:182:9: note: Assuming field 'next_sctp_stream' is < field 'instreams' |
|
if (eNB_ref->next_sctp_stream >= eNB_ref->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:182:5: note: Taking false branch |
|
if (eNB_ref->next_sctp_stream >= eNB_ref->instreams) { |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Field 'id' is not equal to 67 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:19: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Taking false branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Assuming the condition is true |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:407:10: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
ptr < &container->protocolIEs.list \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Loop condition is true. Entering loop body |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:406:5: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
for (ptr = container->protocolIEs.list.array; \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Assuming field 'id' is equal to 67 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:11: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Taking true branch |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:410:7: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
if ((*ptr)->id == IE_ID) { \ |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_mme_nas_procedures.c:187:5: note: Execution continues on line 187 |
|
S1AP_FIND_PROTOCOLIE_BY_ID( |
|
^ |
|
/workspaces/magma/lte/gateway/c/oai/tasks/s1ap/s1ap_common.h:412:9: note: expanded from macro 'S1AP_FIND_PROTOCOLIE_BY_ID' |
|
break; \ |