Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by NavBot (vkp)

Wiki Markup
According to \[[MISRA 08|AA. References#MISRABibliography#MISRA 08]\], concatenation of wide and narrow string literals leads to undefined behavior. This is an implicit undefined behavior according to C99 \[[ISO/IEC 9899:1999|AA. References#ISOBibliography#ISO/IEC 9899-1999]\].

Noncompliant Code Example

...

Wiki Markup
\[[MISRA 08|AA. References#MISRABibliography#MISRA 08]\] Rule 2-13-5

...

      07. Characters and Strings (STR)      STR11-C. Use expression containing sizeof operator to calculate the length of an array