From 1de445c64a369499197b36e39591f71f1bd17ec8 Mon Sep 17 00:00:00 2001 From: ClF3 Date: Mon, 4 Nov 2024 21:10:20 +0800 Subject: [PATCH] Revert "part2 ver 0.5.0" This reverts commit 5d0fb9c694e55028188eda1937429e3bfcfde2f5. --- Part2-FlushReload/attacker.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Part2-FlushReload/attacker.c b/Part2-FlushReload/attacker.c index cd32fe2..86ddc14 100644 --- a/Part2-FlushReload/attacker.c +++ b/Part2-FlushReload/attacker.c @@ -15,7 +15,6 @@ int main() { int index = -1; int flag = -1; - int maybe_flag= -1; CYCLES time = -1; int offset = 0; int new_offset = 0; @@ -37,14 +36,9 @@ int main() { } time = measure_one_block_access_time((ADDR_PTR)buf + offset * 128); if(time < CACHE_HIT_THRESHOLD) { - if(offset == maybe_flag) { - flag = offset; - index = i; - break; - } - else { - maybe_flag = offset; - } + flag = offset; + index = i; + break; } } printf("Flag: %d\n", flag);