Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added Polyspace Bug Finder

...

Creating a universal character name through token concatenation results in undefined behavior.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

PRE30-C

Low

Unlikely

Medium

P2

L3

Automated Detection

Tool

Version

Checker

Description

CodeSonar
Include Page
CodeSonar_V
CodeSonar_V
LANG.PREPROC.PASTE
LANG.PREPROC.PASTEHASH
Macro uses ## operator
## follows # operator
LDRA tool suite
Include Page
LDRA_V
LDRA_V

573 S

Fully implemented

 

Polyspace Bug Finder

  
R2018aUniversal character name from token concatenationYou create a universal character name by joining tokens with ## operator
 

Related Vulnerabilities

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Bibliography

[ISO/IEC 10646-2003]
 

[ISO/IEC 9899:2011]Subclause 5.1.1.2, "Translation Phases"

...


...