Leading Zero Arithmetic Medium

Numbers starting with a leading zero are treated as octal values in Bash arithmetic, causing incorrect results. To prevent this, remove leading zeros or explicitly specify the base using the 'base#' syntax.

Detector ID
shell/leading-zero-arithmetic@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-