Versions Compared

Key

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

...

Although this code clearly expects its file to be opened for reading, the file name might indicate a shell command. It might also indicate a file to be written rather than read.

Noncompliant Code Example (<)

This noncompliant code example attempts to mitigate the problem by prepending a < to the file name.

...