The MISRA plugin (supplied along with cppcheck 2.0) crashes when parsing the following code:
#include <stddef.h> // NULL typedef unsigned short U16; typedef unsigned int U32; #define rtos_realTimer (*(volatile U32 *) 0xFFFFFC10u) #define RTOS_TICK_PER_MICROSEC (8u) U16 * memtestDevice16(volatile U16 * memory, U32 size, void (* callback)(void), volatile const U32 * timer, U32 period); void memDevTest(void) { (void) memtestDevice16((volatile U16 *) 0u, 0u, NULL, &rtos_realTimer, (U32) RTOS_TICK_PER_MICROSEC * 1000u * 25u); }
Thanks! Here is a fix: https://github.com/danmar/cppcheck/pull/2654.
Log in to post a comment.
The MISRA plugin (supplied along with cppcheck 2.0) crashes when parsing the following code:
Thanks! Here is a fix: https://github.com/danmar/cppcheck/pull/2654.