Subject: | VARARG Errors - Coverity results |
Could you please fix the error found by coverity static analysis tool results for Net-SSLeay-1.85?
Error: VARARGS (CWE-237)[#def1]
Net-SSLeay-1.85/SSLeay.xs:224: va_init: Initializing va_list "args".
Net-SSLeay-1.85/SSLeay.xs:228: missing_va_end: va_end was not called for "args".
# 226| warn("%s",buf);
# 227| }
# 228|-> }
# 229|
# 230| #include "constants.c"
Possible fix is attached.
Subject: | Net-SSLeay-1.85-Fix-coverity-error.patch |
diff -up Net-SSLeay-1.85/SSLeay.xs.orig Net-SSLeay-1.85/SSLeay.xs
--- Net-SSLeay-1.85/SSLeay.xs.orig 2018-08-09 14:11:40.536771171 +0200
+++ Net-SSLeay-1.85/SSLeay.xs 2018-08-09 14:13:13.286377460 +0200
@@ -224,6 +224,7 @@ static void TRACE(int level,char *msg,..
va_start(args,msg);
vsnprintf(buf,4095,msg,args);
warn("%s",buf);
+ va_end(args);
}
}