02.02.2012, 07:45
Tell me only one more thing:
Is this natural behaviour which would be except by everyone familiar with assembly or is this about exploiting a bug?
Because when I do (something(), var[0][0]) = 123;
I expect that var[0][0] is assigned with 123 and not the address it points to.
Same with SomeGlobalVar = (somethingelse(), anothervar[0][0]) where SomeGlobalVar should be assigned with anothervar[0][0] and not with the value which anothervar points to.
//EDiT:
Have you ever thought of make some malloc() and free() functions?
This might be greater combined with your pointers.
Is this natural behaviour which would be except by everyone familiar with assembly or is this about exploiting a bug?
Because when I do (something(), var[0][0]) = 123;
I expect that var[0][0] is assigned with 123 and not the address it points to.
Same with SomeGlobalVar = (somethingelse(), anothervar[0][0]) where SomeGlobalVar should be assigned with anothervar[0][0] and not with the value which anothervar points to.
//EDiT:
Have you ever thought of make some malloc() and free() functions?
This might be greater combined with your pointers.