LWN.net Logo

Implications of pure and constant functions

Implications of pure and constant functions

Posted Jun 15, 2008 12:34 UTC (Sun) by nix (subscriber, #2304)
In reply to: Implications of pure and constant functions by etienne_lorrain@yahoo.fr
Parent article: Implications of pure and constant functions

Thanks to rarely-used glibc extensions, printf() and friends must be 
assumed by optimizers to be able to change *anything*, both because the 
information could be sent to a custom stream (-> calling arbitrary 
functions), and because they can contain specifiers for which custom 
conversion have been defined (-> calling arbitrary functions).


(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