Re: [hatari-devel] TOS use of PRG_ssize vs Hatari's |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
On Samstag, 21. Oktober 2023 12:26:08 CEST Troed Sångberg wrote:
> So, this seems to be an extremely unknown (ab)use of TOS specific behavior
> than nonetheless is part of released commercial software.
Yes, it only works by chance, because the offset passed to lseek is invalid, but the error code is ignored in Pexec. But the emulation fails because it calculates an invalid memory address.
Of course you could easily fix the emulation, by checking the symbol table length either for that specific value (if it is always the same), or for being negative, and ignore it in that case.
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |