Warning: Some posts on this platform may contain adult material intended for mature audiences only. Viewer discretion is advised. By clicking ‘Continue’, you confirm that you are 18 years or older and consent to viewing explicit content.
Iirc the issue was that while(true) would be removed while it should be replaced with ret and this caused a bug where the binary would execute next function
But I believe this way of cosmic ray detection would work
volatilebool condition = true;
while(condition) {
}
printf("Cosmic ray detected");
Any sane compiler will simplify this into
function cosmicRayDetector() { while(true) { } }
C++ may further ‘simplify’ this into
function cosmicRayDetector() { return }
Iirc the issue was that while(true) would be removed while it should be replaced with ret and this caused a bug where the binary would execute next function
But I believe this way of cosmic ray detection would work
volatile bool condition = true; while(condition) { } printf("Cosmic ray detected");