Merge pull request #121 from AleksArt000/main #230
Annotations
1 error and 10 warnings
test/test.c:176:9 [clang-diagnostic-return-type]:
test/test.c#L176
void function 'test_make' should not return a value
|
src/config.c:19:13 [cppcoreguidelines-avoid-non-const-global-variables]:
src/config.c#L19
variable 'configEntries' is non-const and globally accessible, consider making it const
|
src/install.c:1:9 [bugprone-reserved-identifier]:
src/install.c#L1
declaration uses identifier '_GNU_SOURCE', which is a reserved identifier
|
src/install.c:43:5 [readability-function-cognitive-complexity]:
src/install.c#L43
function 'f_install_package_source' has cognitive complexity of 57 (threshold 25)
|
src/install.c:114:9 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
src/install.c#L114
Call to function 'sprintf' is insecure as it does not provide bounding of the memory buffer or security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11
|
src/install.c:120:9 [clang-analyzer-unix.Malloc]:
src/install.c#L120
Potential leak of memory pointed to by 'env_path'
|
src/install.c:124:9 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
src/install.c#L124
Call to function 'sprintf' is insecure as it does not provide bounding of the memory buffer or security checks introduced in the C11 standard. Replace with analogous functions that support length arguments or provides boundary checks such as 'sprintf_s' in case of C11
|
src/install.c:126:15 [cppcoreguidelines-init-variables]:
src/install.c#L126
variable 'env_file' is not initialized
|
src/install.c:127:18 [clang-analyzer-unix.Malloc]:
src/install.c#L127
Potential leak of memory pointed to by 'env_path'
|
src/install.c:148:17 [clang-analyzer-core.NonNullParamChecker]:
src/install.c#L148
Null pointer passed to 2nd parameter expecting 'nonnull'
|
src/install.c:158:8 [clang-analyzer-core.NonNullParamChecker]:
src/install.c#L158
Null pointer passed to 1st parameter expecting 'nonnull'
|