fixed variable parsing #227
Annotations
10 warnings
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:112:9 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
src/install.c#L112
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:118:9 [clang-analyzer-unix.Malloc]:
src/install.c#L118
Potential leak of memory pointed to by 'env_path'
|
src/install.c:122:9 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]:
src/install.c#L122
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:124:15 [cppcoreguidelines-init-variables]:
src/install.c#L124
variable 'env_file' is not initialized
|
src/install.c:125:18 [clang-analyzer-unix.Malloc]:
src/install.c#L125
Potential leak of memory pointed to by 'env_path'
|
src/install.c:146:17 [clang-analyzer-core.NonNullParamChecker]:
src/install.c#L146
Null pointer passed to 2nd parameter expecting 'nonnull'
|
src/install.c:156:8 [clang-analyzer-core.NonNullParamChecker]:
src/install.c#L156
Null pointer passed to 1st parameter expecting 'nonnull'
|