Creates a C SDK to interact with the server #22
Annotations
6 warnings
clang-tidy:
sdks/c/libMemoryKV/libMemoryKV.c#L56
[clang-tidy] reported by reviewdog 🐶
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 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
memcpy(s->ptr + s->len, ptr, new_len + 1);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:56:3: note: 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
Raw Output:
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:56:3: warning: 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 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
memcpy(s->ptr + s->len, ptr, new_len + 1);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:56:3: note: 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
|
clang-tidy:
sdks/c/libMemoryKV/libMemoryKV.c#L86
[clang-tidy] reported by reviewdog 🐶
Call to function 'snprintf' 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 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
unsigned long size_needed = snprintf(NULL, 0, "%s/%s", host, params);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:86:30: note: Call to function 'snprintf' 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 'snprintf_s' in case of C11
Raw Output:
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:86:30: warning: Call to function 'snprintf' 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 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
unsigned long size_needed = snprintf(NULL, 0, "%s/%s", host, params);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:86:30: note: Call to function 'snprintf' 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 'snprintf_s' in case of C11
|
clang-tidy:
sdks/c/libMemoryKV/libMemoryKV.c#L90
[clang-tidy] reported by reviewdog 🐶
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 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
sprintf(url, "%s/%s", host, params);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:90:2: note: 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
Raw Output:
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:90:2: warning: 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 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
sprintf(url, "%s/%s", host, params);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:90:2: note: 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
|
clang-tidy:
sdks/c/libMemoryKV/libMemoryKV.c#L111
[clang-tidy] reported by reviewdog 🐶
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(r->error, unknown_error_msg);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:111: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
Raw Output:
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:111: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(r->error, unknown_error_msg);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:111: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
|
clang-tidy:
sdks/c/libMemoryKV/libMemoryKV.c#L116
[clang-tidy] reported by reviewdog 🐶
Call to function 'snprintf' 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 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
unsigned long size_needed = snprintf(NULL, 0, "%s : %s", base_curl_error, err);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:116:30: note: Call to function 'snprintf' 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 'snprintf_s' in case of C11
Raw Output:
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:116:30: warning: Call to function 'snprintf' 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 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
unsigned long size_needed = snprintf(NULL, 0, "%s : %s", base_curl_error, err);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:116:30: note: Call to function 'snprintf' 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 'snprintf_s' in case of C11
|
clang-tidy:
sdks/c/libMemoryKV/libMemoryKV.c#L120
[clang-tidy] reported by reviewdog 🐶
Call to function 'snprintf' 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 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
snprintf(r->error, size_needed + 1, "%s : %s", base_curl_error, err);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:120:2: note: Call to function 'snprintf' 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 'snprintf_s' in case of C11
Raw Output:
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:120:2: warning: Call to function 'snprintf' 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 'snprintf_s' in case of C11 [clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling]
snprintf(r->error, size_needed + 1, "%s : %s", base_curl_error, err);
^
/home/runner/work/MemoryKV/MemoryKV/sdks/c/libMemoryKV/libMemoryKV.c:120:2: note: Call to function 'snprintf' 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 'snprintf_s' in case of C11
|