it looks like passing enums to va_start is unsafe as codechecker reports...
it looks like passing enums to va_start is unsafe as codechecker reports "passing an object that undergoes default argument promotion to 'va_start' has undefined behavior".
Maybe adding a casting to int (forcing the int conversion) will fix it.
Signed-off-by:
Kristof Szabados <Kristof.Szabados@ericsson.com>
Showing
- compiler2/encdec.c 1 addition, 1 deletioncompiler2/encdec.c
- core/ASN_Any.cc 1 addition, 1 deletioncore/ASN_Any.cc
- core/ASN_CharacterString.cc 1 addition, 1 deletioncore/ASN_CharacterString.cc
- core/ASN_EmbeddedPDV.cc 1 addition, 1 deletioncore/ASN_EmbeddedPDV.cc
- core/ASN_External.cc 1 addition, 1 deletioncore/ASN_External.cc
- core/ASN_Null.cc 1 addition, 1 deletioncore/ASN_Null.cc
- core/Basetype.cc 1 addition, 1 deletioncore/Basetype.cc
- core/Bitstring.cc 1 addition, 1 deletioncore/Bitstring.cc
- core/Boolean.cc 1 addition, 1 deletioncore/Boolean.cc
- core/Charstring.cc 1 addition, 1 deletioncore/Charstring.cc
- core/Float.cc 1 addition, 1 deletioncore/Float.cc
- core/Hexstring.cc 1 addition, 1 deletioncore/Hexstring.cc
- core/Integer.cc 1 addition, 1 deletioncore/Integer.cc
- core/Objid.cc 1 addition, 1 deletioncore/Objid.cc
- core/Octetstring.cc 1 addition, 1 deletioncore/Octetstring.cc
- core/Universal_charstring.cc 1 addition, 1 deletioncore/Universal_charstring.cc
- core/Verdicttype.cc 1 addition, 1 deletioncore/Verdicttype.cc
Loading
Please register or sign in to comment