You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

Recommendations

Use file descriptors instead of filenames

Translate filenames into canonical form before use

Rules

Check file properties securely

Detect and handle file operation errors

Do not create tempory files with predictable names

Verify path and filename parameters

Do not make assumptions about the structure of the underlying filesystem

Ensure files that are operated on refer to the expected file object

  • No labels