Is it possible to create a simple infinite emulation detector?
From
olcott@21:1/5 to
All on Thu Sep 23 13:30:14 2021
XPost: comp.theory, comp.lang.c, comp.lang.c++
#include <stdint.h>
#define ptr uintptr_t
int H(ptr p, ptr i)
{
// Determine infinitely nested x86 emulation
}
void P(ptr x)
{
H(x, x);
}
int main()
{
printf("H is called in infinitely nested emulation = ", H(P, P));
}
H would use an x86 emulator to emulate its input in debug step mode.
Since people are telling me that my solution is incorrect I am giving
them an opportunity to either correct my errors or failing that show
that their software engineering skills are insufficient to analyze the
problem as presented.
--
Copyright 2021 Pete Olcott
"Great spirits have always encountered violent opposition from mediocre
minds." Einstein
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)