...
| Code Block | ||
|---|---|---|
| ||
#include <stdio.h>
int main(void) {
FILE my_stdout = *(stdout);
fputs("Hello, World!\n", &my_stdout);
return 0;
}
|
Platform Specific Details
This For example, this non-compliant example does fail fails with an "access violation" when compiled under Microsoft Visual Studio 2005 and run on an IA-32 platform.
...
Using a copy of a FILE object in place of the original is likely to may result in a crash which can be used in a denial-of-service attack.
...