summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2019-10-28 10:50:09 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-10-28 10:50:22 (GMT)
commitcdcc173e236963ad598b098d2d807d0489aa3d42 (patch)
tree4b6a98ee254b90f50cf1185fca98bd9fcafbfde3 /Help
parente03b677e703f84c9d1a2875083d1290db16eb4ad (diff)
parent82cdb26c93b595e3791818cc8f24dfc6935eb8a8 (diff)
downloadCMake-cdcc173e236963ad598b098d2d807d0489aa3d42.zip
CMake-cdcc173e236963ad598b098d2d807d0489aa3d42.tar.gz
CMake-cdcc173e236963ad598b098d2d807d0489aa3d42.tar.bz2
Merge topic 'project-version-buffer-overflow'
82cdb26c93 project: Fix potential buffer write-past-end for version components 15a0b0d046 Help: math() expressions must be representable as signed 64-bit Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3948
Diffstat (limited to 'Help')
-rw-r--r--Help/command/math.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/command/math.rst b/Help/command/math.rst
index 3cbe719..ddb1ec6 100644
--- a/Help/command/math.rst
+++ b/Help/command/math.rst
@@ -8,7 +8,8 @@ Evaluate a mathematical expression.
math(EXPR <variable> "<expression>" [OUTPUT_FORMAT <format>])
Evaluates a mathematical ``<expression>`` and sets ``<variable>`` to the
-resulting value.
+resulting value. The result of the expression must be representable as a
+64-bit signed integer.
The mathematical expression must be given as a string (i.e. enclosed in
double quotation marks). An example is ``"5 * (10 + 13)"``.