cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

# Fix bug misra.py misra_7_4 muti args crash

Open notify-bibi opened this issue 4 years ago • 1 comments

                # 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 avatar Dec 01 '21 09:12 notify-bibi

@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?

danmar avatar May 07 '23 09:05 danmar