...
All occurrences in a source file of the following sequences of three characters (that is, trigraph sequences) are replaced with the corresponding single character.
??=
#
??)
]
??!
|
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="50cc532c84d8f738-b9f6bf02-47a84471-89b3875f-1480b24791c0c728d7e84a05"><ac:plain-text-body><![CDATA[
??(
[
??'
^
??>
}
]]></ac:plain-text-body></ac:structured-macro>
??/
\
??<
{
??-
~
...
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
PRE07-C | low | unlikely | medium | P2 | L3 |
Automated Detection
GCC provides a -Wtrigraphs
option that warns when trigraphs are used. GCC also provides a --no-trigraph
option that is enabled by default.
The LDRA tool suite V 7.6.0 can detect violations of this recommendation.
GCC Compiler can detect violation of this recommendation when the -Wtrigraphs
flag is used.
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...