[PATCH] D112914: Misleading identifier detection

serge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 1 02:22:25 PDT 2021


serge-sans-paille created this revision.
Herald added subscribers: carlosgalvezp, mgorny.
serge-sans-paille requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.

Detect identifiers with right-to-left ordering through clang-tidy.
It detects a class of attack similar to the ones described in https://www.trojansource.codes/trojan-source.pdf


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112914

Files:
  clang-tools-extra/clang-tidy/misc/CMakeLists.txt
  clang-tools-extra/clang-tidy/misc/MisleadingIdentifier.cpp
  clang-tools-extra/clang-tidy/misc/MisleadingIdentifier.h
  clang-tools-extra/test/clang-tidy/checkers/misc-misleading-identifier.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112914.383748.patch
Type: text/x-patch
Size: 11981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20211101/fef124a7/attachment-0001.bin>


More information about the cfe-commits mailing list