Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
...
int fd = open(file_name, O_CREAT | O_WRONLY, file_access_permissions);
if (fd == -1){
  /* Handle Error */
}
...

Non-compliant Code Example 3 (Win32)

Compliant Code Solution 3 (Win32)

Risk Assessment

Creating files without appropriate access permissions may allow unintended access to those files.

...