Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider v2.4 (sch jbop) (X_X)@==(Q_Q)@

Recommendations

ERR00-AC. Adopt and implement a consistent and comprehensive error handling policy

ERR01-AC. Use ferror() rather than errno to check for FILE stream errors

ERR02-AC. Avoid in-band error indicators

ERR03-AC. Use runtime-constraint handlers when calling functions defined by TR24731-1

ERR04-AC. Choose an appropriate termination strategy

ERR05-AC. Application-independent code should provide error detection without dictating error handling

ERR06-AC. Understand the termination behavior of assert() and abort()

Rules

ERR30-C. Set errno to zero before calling a function, and use it only after the function returns a value indicating failure

...

Recommendation

Severity

Likelihood

Remediation Cost

Priority

Level

ERR00-A C

medium

probable

high

P4

L3

ERR01-A C

low

probable

low

P6

L2

ERR02-A C

low

unlikely

high

P1

L3

ERR03-A C

low

unlikely

medium

P2

L3

ERR04-A C

medium

probable

high

P4

L3

ERR05-A C

medium

probable

high

P4

L3

ERR06-A C

medium

unlikely

medium

P4

L3

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

ERR30-C

low

unlikely

medium

P2

L3

ERR31-C

low

unlikely

low

P3

L3

ERR32-C

low

unlikely

low

P3

L3

...

      11. Signals (SIG)       ERR00-AC. Adopt and implement a consistent and comprehensive error handling policy