Skip to content

Update ecmp.c

Update ecmp.c #221

Re-run triggered October 26, 2024 07:37
Status Success
Total duration 38s
Artifacts

c-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
formats/ecmp/ecmp.c:27:14 [readability-inconsistent-declaration-parameter-name]: formats/ecmp/ecmp.c#L27
function 'getsections' has a definition with different parameter names
formats/ecmp/ecmp.c:33:12 [cppcoreguidelines-avoid-non-const-global-variables]: formats/ecmp/ecmp.c#L33
variable 'hm' is non-const and globally accessible, consider making it const
formats/ecmp/ecmp.c:33:12 [cppcoreguidelines-avoid-non-const-global-variables]: formats/ecmp/ecmp.c#L33
variable 'hm' provides global access to a non-const object; consider making the pointed-to data 'const'
formats/ecmp/ecmp.c:34:12 [cppcoreguidelines-avoid-non-const-global-variables]: formats/ecmp/ecmp.c#L34
variable 'infohm' is non-const and globally accessible, consider making it const
formats/ecmp/ecmp.c:34:12 [cppcoreguidelines-avoid-non-const-global-variables]: formats/ecmp/ecmp.c#L34
variable 'infohm' provides global access to a non-const object; consider making the pointed-to data 'const'
formats/ecmp/ecmp.c:168:13 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]: formats/ecmp/ecmp.c#L168
Call to function 'memmove' is insecure as it does not provide security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'memmove_s' in case of C11