Superhack multithreading stack error?

Post Reply
W0F
Posts: 3
Joined: Thu Dec 27, 2012 8:53 pm

Superhack multithreading stack error?

Post 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]
W0F
Posts: 3
Joined: Thu Dec 27, 2012 8:53 pm

Post 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.
User avatar
Hippo
Posts: 339
Joined: Sat Feb 01, 2014 12:05 am
Location: Praha 5

Post 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.
Post Reply