Skip to content

Conversation

@hunter-79
Copy link

Fix issues found by Parasoft C/C++test (static code analysis) usind SEI CERT coding standard as rule set.

line 133: Function 'lcurl_easy_cleanup_storage' should have return at the end of each execution path rule-id: CERT_C-MSC37-a-2
message: Non-initialized "ptr" is passed to "lua_pushlstring" as const When input length is zero the transformation loop does not run, leaving buffer contents uninitialized. Although lua_pushlstring with length 0 would not read from ptr, some static analyzers flag this as use of uninitialized data. Init buffer to empty string to silence warnings (CERT_C-EXP33-a-1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants