Versions Compared

Key

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

...

An exception to this rule applies if the intent of the programmer is to convert a null-terminated byte string to a character array.  To be compliant with this standard, this intent must be clearly stated in comments.

...

Risk Assessment

Failure to properly null terminate null-terminated byte strings can result in buffer overflows and the execution of arbitrary code with the permissions of the vulnerable process by an attacker.

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

STR33-C

Component

Value

Severity

3 (high)

Likelihood

2 (probable) Remediation cost

2 (medium)

P12

L1

References