HKMC C and C++ checker reference

Checker name Description Default severity Enabled by default? Version
CXX.GETLOGIN Do not use getlogin in multithreaded applications 4 False 2022.3
CXX.ITER.END.BEGIN Iterator representing end of the range precedes start of range 4 False 2022.3
CXX.MALLOC.SIZEOF Always call sizeof() when allocating memory with malloc 4 False 2022.3
CXX.MALLOC.WCHAR_LENGTH Use (wsclen()+1*sizeof(wchar_t)) when allocating memory with malloc for wchar_t buffers 4 False 2022.3
CXX.MEMBER.CRITICAL.PUBLIC.METHOD Critical private member data shall not be directly writable by a public method 4 False 2022.3
CXX.MEMBER.IMPORTANT.PRIVATE Important member data shall be private 4 False 2022.3
CXX.POSIX.VFORK Do not use vfork() 4 False 2022.3
CXX.PUTENV.LOCAL.PTR Do not pass a pointer to a local variable in the putenv() 4 False 2022.3
CXX.REALLOC Use of realloc() should be avoided 4 False 2022.3

CXX.STATIC.OBJ.FINAL

Initialized public static field not mark as final 4 False 2022.3
CXX.STATIC.OBJ.RECURSION Do not reenter function during initialization of static objects 4 False 2022.3