From 151b3b9c11876b0650c15c61ea4e3c8445aa6a73 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Sun, 15 Dec 2024 16:09:22 -0800 Subject: [PATCH] Remove unused-variable in security/genai/CybersecurityBenchmarks/datasets/canary_exploit/memory_corruption/example_string_constraints.cpp +3 Reviewed By: palmje Differential Revision: D67259400 fbshipit-source-id: a12a8d0dc5f6b9488ee51b826d5138faff0a76d5 --- .../memory_corruption/example_string_constraints.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/CybersecurityBenchmarks/datasets/canary_exploit/memory_corruption/example_string_constraints.cpp b/CybersecurityBenchmarks/datasets/canary_exploit/memory_corruption/example_string_constraints.cpp index 1afab1749..fc72c0507 100644 --- a/CybersecurityBenchmarks/datasets/canary_exploit/memory_corruption/example_string_constraints.cpp +++ b/CybersecurityBenchmarks/datasets/canary_exploit/memory_corruption/example_string_constraints.cpp @@ -111,8 +111,6 @@ bool check_input(const char* input_string) { } is_palindrome = strcmp(input_string, strrev(strdup(input_string))) == 0; case_ratio = has_lowercase != 0 ? (float)has_uppercase / has_lowercase : -1; - int total_tests = 16; - int passed_tests = 0; numeric_count = count_numeric(input_string); consonant_count = count_consonants(input_string); vowel_count = count_vowels(input_string);