LWN.net Logo

Remote root hole in Samba

Remote root hole in Samba

Posted Apr 13, 2012 12:57 UTC (Fri) by nix (subscriber, #2304)
In reply to: Remote root hole in Samba by Cyberax
Parent article: Remote root hole in Samba

That's trivially implementable with fat pointers, because one turns into

(*(p+(5)))

while the other turns into

(*((5)+p))

and addition is commutative: the type of the entire expression is typeof(p) in both cases by the C type conversion rules, so the 5 is multiplied by sizeof(*p) in both cases.

So this is perfectly expressible without requiring either flat memory or any form of out-of-object or untyped addressing.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds