Page 1 of 1

Purifier bug?

Posted: Mon Oct 14, 2024 8:35 am
by Joubarbe
On this blog post, you can find this code:

Code: Select all

Procedure a()

a.l = 10

*CrazyPointer.Long = @a
*CrazyPointer+1
*CrazyPointer\l = 152  ; stack corruption

EndProcedure

a()
The error is only caught if you compile with the ASM backend. In C, the Purifier doesn't seem to do its job.

Re: Purifier bug?

Posted: Mon Oct 14, 2024 9:15 am
by Fred
Yes, it's not possible to do the same in C, I will take a closer look. For now, the purifier is more useful using the ASM backend.