* On 2022-01-14 07:31, Mohamad Al-Jaf wrote:
Is there any indication this function should be doing something like > this at all?
I'm testing it out in Windows to get a sense of what it does. Here's my code in C++, let me know if it's incorrect:
typedef int (*CurrentIP)(); HMODULE hDLL = LoadLibraryA("wdscore.dll"); CurrentIP ip = (CurrentIP)GetProcAddress(hDLL, "CurrentIP"); std::cout << "CurrentIP() = " << ip() << "\n"; FreeLibrary(hDLL);
It returns random numbers, e.g. 10424371, 1249331, 6033459. So doesn't this mean it's returning the instruction pointer?
If so, I don't know how to write a conformance test for it. Would it be necessary in this case?
I think it would be useful add saving all the CPU registers (before or maybe after calling the function) in the test and dumping them together with the CurrentIP() return value using just trace().
So different test runs would provide more data to decide if there is some correlation between what CurrentIP() returns and any of the regs.
My 2c€, S.