Content deleted Content added
expanding -- C printf and Lisp format as practical examples; type safety |
m Link to variadic macro |
||
Line 6:
Variadic functions can expose type-safety problems in some languages. For instance, C's <TT>printf</TT>, if used uncautiously, can give rise to a class of security holes known as [[format string attack]]s. The attack is possible because the language support for variadic functions is not [[type safety|type-safe]]; it permits the function to attempt to pop more arguments off the stack than were placed there -- corrupting the stack and leading to unexpected behavior.
== See Also ==
[[Variadic macro]] (C Programming Language)
{{compu-stub}}
|