Skip to content

obfs: fix derp

obfs: fix derp #126

Triggered via push January 6, 2024 14:38
Status Success
Total duration 1m 6s
Artifacts

lint.yml

on: push
cpp-linter
57s
cpp-linter
Fit to window
Zoom out
Zoom in

Annotations

10 warnings and 1 notice
src/nonce.c:33:18 [readability-function-cognitive-complexity]: src/nonce.c#L33
function 'noncegen_create' has cognitive complexity of 31 (threshold 25)
src/nonce.c:43:34 [readability-uppercase-literal-suffix]: src/nonce.c#L43
integer literal has suffix 'u', which is not uppercase
src/nonce.c:43:40 [readability-uppercase-literal-suffix]: src/nonce.c#L43
integer literal has suffix 'u', which is not uppercase
src/nonce.c:43:46 [readability-uppercase-literal-suffix]: src/nonce.c#L43
integer literal has suffix 'u', which is not uppercase
src/nonce.c:43:52 [readability-uppercase-literal-suffix]: src/nonce.c#L43
integer literal has suffix 'u', which is not uppercase
src/obfs.c:125:2 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]: src/obfs.c#L125
Call to function 'memcpy' 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 'memcpy_s' in case of C11
src/obfs.c:126:2 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]: src/obfs.c#L126
Call to function 'memset' 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 'memset_s' in case of C11
src/obfs.c:131:19 [cppcoreguidelines-init-variables]: src/obfs.c#L131
variable 'ctx' is not initialized
src/obfs.c:227:38 [readability-uppercase-literal-suffix]: src/obfs.c#L227
integer literal has suffix 'u', which is not uppercase
src/obfs.c:228:39 [readability-uppercase-literal-suffix]: src/obfs.c#L228
integer literal has suffix 'u', which is not uppercase
Run clang-format on src/obfs.c: src/obfs.c#L1
File src/obfs.c does not conform to Custom style guidelines. (lines 648)