...
This non-compliant code example also violates FIO02-A. Canonicalize path names originating from untrusted sources and FIO03-AC. Do not make assumptions about fopen() and file creation.
Compliant Solution (*NIX)
...
...
This non-compliant code example also violates FIO02-A. Canonicalize path names originating from untrusted sources and FIO03-AC. Do not make assumptions about fopen() and file creation.
...