Re:Dereferencing NULL Pointer, without a Seg Fault
by daemonize on Tuesday July 10, 2012 @10:12PM
(#4227380)
I think showing the actual disassembly would help people understand. it might lose some so maybe as a side bar.
[ Parent
| on HN ]
Re:Dereferencing NULL Pointer, without a Seg Fault
by danellis on Tuesday July 10, 2012 @10:20PM
(#4227394)
Showing some C-like pseudo-code would probably do the trick nicely.
Re:Dereferencing NULL Pointer, without a Seg Fault
by malkia on Tuesday July 10, 2012 @10:55PM
(#4227499)
p->m() ~= m(p) - e.g. the object is pushed as the first argument to the method.
The actual "m" is found by looking at the "p" class if it's non-virtual, and at the "v-table" in p if it's "virtual".
If "m" is static, no class lookup, or object v-table lookup is done, and the call is p->m() ~= m()