cppcheck
cppcheck copied to clipboard
# Fix bug misra.py misra_7_4 muti args crash
# declaration int redisFormatCommand(char **target, const char *format, ...);
# len = redisFormatCommand(&cmd,"SET %s %s","foo","bar");
# "foo" and "bar" is ...
File "Release/misra/addons/misra.py", line 4157, in executeCheck check_function(*args) File "Release/misra/addons/misra.py", line 1823, in misra_7_4 if usedParameter.isString and parameterDefinition.nameToken: AttributeError: 'NoneType' object has no attribute 'nameToken'
@notify-bibi this has been open for a while now. I would just like a test case also. Do you have time to add it?