raphaelsc / Am-I-affected-by-Meltdown

Meltdown Exploit / Proof-of-concept / checks whether system is affected by Variant 3: rogue data cache load (CVE-2017-5754), a.k.a MELTDOWN.
https://meltdownattack.com/
BSD 2-Clause "Simplified" License
542 stars 71 forks source link

Compilation error : static_assert expect comma #3

Closed Bromind closed 6 years ago

Bromind commented 6 years ago

Hi, I have a compilation error. See below for detailed explanations :-)

What system am I running ?

$ uname -v
Linux xxxx 4.12.12-gentoo #1 SMP Sat Nov 11 14:11:35 CET 2017 x86_64 Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz GenuineIntel GNU/Linux

What am I doing ?

$ make 2> compile.err
g++ -I. --std=c++11 -O0 --no-pie -mrtm -fPIC -c -o meltdown_checker.o meltdown_checker.cc

What is the result ?

$ cat compile.err
meltdown_checker.cc: Dans la fonction ‘uint8_t probe_one_syscall_table_address_byte(uintptr_t, char*)’:
meltdown_checker.cc:96:75: erreur : expected ‘,’ before ‘)’ token
         static_assert(total_pages <= std::numeric_limits<uint8_t>::max()+1);
                                                                           ^
meltdown_checker.cc:96:75: erreur : expected string-literal before ‘)’ token
make: *** [Makefile:6: meltdown_checker.o] Error 1
raphaelsc commented 6 years ago

@Bromind done. please pull latest changes and check the problem is fixed for you

Bromind commented 6 years ago

Fixed 👍