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

Compare with Current View Page History

« Previous Version 6 Next »

The sizeof operator yields the size (in bytes) of its operand, which may be an expression or the parenthesized name of a type. If the type of the operand is not a variable length array type the operand is not evaluated.

Providing an expression that appears to produce side effects may be misleading to programmers who are not aware that these expressions are not evaluated. As a result, programmers may make invalid assumptions about program state leading to errors and possible software vulnerabilities.

Unable to render {include} The included page could not be found.
Unable to render {include} The included page could not be found.

Priority: P3 Level: L3

Operands to the sizeof operator which contain side effects are unlikely to result in software vulnerabilties, but can also be easily remediated.

Component

Value

Severity

1 (low)

Likelihood

1 (unlikely)

Remediation cost

3 (low)

References

  • No labels