Global Feed Post Login
Replying to Avatar ChipTuner

Please do! I want to have support for many languages in the future

The issues is that on my most *nix platforms the `memset(ptr, size);` call gets optimized away because there is no read after write. So it's considered insecure. Along with that both the cl.exe and cc compilers treat volatile argument pointers differently and they even disagree heavily about when to use volatile pointers either as arguments or even in the procedure body. Really the only right way is to look at the assembly after you compile your project to see if there are instructions to wipe the buffer correctly.

Avatar
x 1y ago

That's wild.

Reply to this note

Please Login to reply.

Discussion

No replies yet.