Menu

MISRA plugin crash

2020-05-21
2020-05-21
  • Jan Nárovec

    Jan Nárovec - 2020-05-21

    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);
    }
    
     
  • Georgiy Komarov

    Georgiy Komarov - 2020-05-21
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.