blob: 193ac750d7aceea34bd58cff832beda2010b0ce2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* code from https://www.paulkocher.com/doc/MicrosoftCompilerSpectreMitigation.html */
#include <stdlib.h>
#include <stdint.h>
extern size_t array_size;
extern uint8_t array1[];
extern uint8_t array2[];
extern uint8_t temp;
void victim_function_v10(size_t x, uint8_t k)
{
if (x < array_size) {
if (array1[x] == k)
temp &= array2[0];
}
}
|