# Functions
ContainBidirectionnal reports whether the byte contains bidirectionnal character as defined by Unicode's bidirectional algorithm property; this could lead to Trojan Source vulnerability.
IsBidirectionalAlgorithm reports whether the rune is a bidirectionnal character as defined by Unicode's bidirectional algorithm property; This is: - Implicit Directional Formatting Characters: U+200E (LRM), U+200F (RLM), U+061C (ALM) - Explicit Directional Embedding and Override Formatting Characters: U+202A (LRE), U+202B (RLE), U+202D (LRO), U+202E (RLO), U+202C (PDF) - Explicit Directional Isolate Formatting Characters: U+2066 (LRI), U+2067 (RLI), U+2068 (FSI), U+2069 (PDI).
Scan file or folder to detect potential Trojan Source vulnerability within.
# Variables
Global dict for bidirectional characrters.