Page 1 of 1

Superhack multithreading stack error?

Posted: Wed Mar 13, 2013 1:07 am
by W0F
It seems to me the multithreading is not working correctly because of the stack manipulations. Do any of you feel the same? For example, try this code on php:
[code]
&\11111111111111!
\000000000 !
[/code]

Posted: Wed Mar 13, 2013 1:09 am
by W0F
Actually there should be a space in the very beginning of the second line of code, but it was eaten by the forum, I believe.

Posted: Tue Feb 09, 2021 5:52 pm
by Hippo
It works according to the definition. Don't forget that the memory is shared. The thread 0 has stack pointer pointing further than the thread 1, so thread 0 writes before thread 1 reaches the position and thread 1 rewrites ones by zeros.