Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Wiki MarkupThe C standard identifies specific strings to use for the {{mode}} on calls to {{fopen()}} \ [[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\]. To be strictly conforming and portable, one of the strings from the following table (adapted from the C standard) must be used:

Strings to use for the mode on calls to fopen()

...

If the mode string begins with one of these sequences, the implementation might choose to ignore the remaining characters, or it might use them to select different kinds of files.

Wiki MarkupAn [implementation|BB. Definitions#implementation] may define additional mode strings, but only the modes shown in the table are fully portable and C99 compliant \ [[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\].

Risk Assessment

Using a mode string that is not recognized by an implementation may cause the call to fopen() to fail.

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

FIO11-C

medium

probable

medium

P8

L2

Automated Detection

Tool

Version

Checker

Description

Section

Compass/ROSE

 

 

Section

Section

LDRA tool suite

Include Page
c:LDRA_Vc:
LDRA_V
Section

590 S

Section

Partially Implemented

...