...
Code Block | ||
---|---|---|
| ||
function MyMethod(optional string ExtraPar = "ABCD"); .... function CrashTheGame() { //this will crash with a buffer overlow; "ABCDEF" is longer thatthan "ABCD" MyMethod("ABCDEF"); } function EverythingIsOkay() { //this won't crash; "ABC" is shorter than "ABCD" MyMethod("ABC"); } |
...