brintos

brintos / llvm-project-archived public Read only

0
0
Text · 563 B · 1b2d961 Raw
16 lines · plain
1.. title:: clang-tidy - misc-confusable-identifiers2 3misc-confusable-identifiers4===========================5 6Warn about confusable identifiers, i.e. identifiers that are visually close to7each other, but use different Unicode characters. This detects a potential8attack described in `CVE-2021-42574 <https://www.cve.org/CVERecord?id=CVE-2021-42574>`_.9 10Example:11 12.. code-block:: text13 14    int fo; // Initial character is U+0066 (LATIN SMALL LETTER F).15    int 𝐟o; // Initial character is U+1D41F (MATHEMATICAL BOLD SMALL F) not U+0066 (LATIN SMALL LETTER F).16