Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

C99 supports universal character names that may be used in identifiers, character constants, and string literals to designate characters that are not in the basic character set.
The universal character name \Unnnnnnnn designates the character whose eight-digit short identifier (as specified by ISO/IEC 10646) is nnnnnnnn. Similarly, the universal
character name \unnnn designates the character whose four-digit short identifier is nnnn (and whose eight-digit short identifier is 0000nnnn).

...

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

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

PRE30-C

1 (low)

1 (unlikely)

1 (high)

P1

L3

...

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

References

Wiki Markup
\[[ISO/IEC 10646-2003|AA. C References#ISO/IEC 10646-2003]]
\[[ISO/IEC 9899-1999|AA. C References#ISO/IEC 9899-1999]] Section 5.1.1.2, "Translation phases," Section 6.4.3, "Universal character names," and Section 6.10.3.3, "The ## operator"