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

Alter return code based on whether affected or not #20

Closed harlowja closed 6 years ago

harlowja commented 6 years ago

It is quite handy to have this program exit with a non-zero error code if affected (or some other issue) happens and a zero error code if likely not affected.

This changes it so that a boolean is used to track whether the system is affected (or not) and adjusts the main() return code based on that boolean.