Versions Compared

Key

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

C programs often rely on file files to load or and store data needed during program execution. File functions, such as open, read, write, and close are built into the C programming language itself to simplify how C programs interact with files and file data. By definitionHowever, it is the underlying operating system is responsible for managing access to files. This creates irregularities and inconsistencies between that manages files. Inconsistencies may exist between how C programs and the underlying operating system handle the files and the file system. Many of these descrepencies can lead to security vulnerabilities.

The following rules and recommendations are designed suggested to reduce the common errors associated with file operations in C. These guidelines are designed to by system independent. However, files and file management is are inherently tied to the underlying operating system. Cases where security issues or recomendations are specific to an architecture are clearly marked as pertaining to that architecture.

...