summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-08-09 13:58:22 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-08-09 18:35:35 +0400
commite091d6ed62fd2f7e2def56e23c7d6f32c693d1ca (patch)
treec3362f65618d53c3e9bc8ab0f7f25e51c5866856 /doc
parentfe55e918fafb3f0fe9151e5473d1dcc1dd20e532 (diff)
downloadnasm-e091d6ed62fd2f7e2def56e23c7d6f32c693d1ca.tar.gz
nasm-e091d6ed62fd2f7e2def56e23c7d6f32c693d1ca.tar.bz2
nasm-e091d6ed62fd2f7e2def56e23c7d6f32c693d1ca.zip
BR3041451: Implement upper bound for %rep counter
Since %rep counter is a 64 bit signed integer we have to use some "maximum possible value" limit (upper bound) otherwise there may be a situation when %rep counter is 0 or even negative while user has been passing big positive integer value. Reported-by: nasm64developer Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/changes.src3
-rw-r--r--doc/nasmdoc.src3
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/changes.src b/doc/changes.src
index a7ee231..d015f9e 100644
--- a/doc/changes.src
+++ b/doc/changes.src
@@ -9,6 +9,9 @@ since 2007.
\S{cl-2.09} Version 2.09
+\b Fixed assignment the magnitude of \c{%rep} counter. It is limited
+ to 62 bits now.
+
\b Fixed NULL dereference if argument of \c{%strlen} resolves
to whitespace. For example if nonexistent macro parameter is used.
diff --git a/doc/nasmdoc.src b/doc/nasmdoc.src
index ab343e5..e797329 100644
--- a/doc/nasmdoc.src
+++ b/doc/nasmdoc.src
@@ -3211,6 +3211,9 @@ infinite loop in the preprocessor, which (on multitasking or
multi-user systems) would typically cause all the system memory to
be gradually used up and other applications to start crashing.
+Note a maximum repeat count is limited by 62 bit number, though it
+is hardly possible that you ever need anything bigger.
+
\H{files} Source Files and Dependencies