From 6221256da400753dbfd6b837fe2d07d4637f3c55 Mon Sep 17 00:00:00 2001 From: teor Date: Wed, 23 Feb 2022 12:22:12 +1000 Subject: [PATCH] security(rust): forbid non-ascii identifiers (#3615) Rust supports non-ascii identifiers, but we don't use them in Zebra. But similar non-ascii characters can be a security risk, particularly when using some editors or GitHub reviews. --- .cargo/config.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index b15ae6c3..ab452214 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -5,6 +5,7 @@ rustflags = [ # High-risk code "-Dunsafe_code", + "-Dnon_ascii_idents", # Potential bugs #