summaryrefslogtreecommitdiff
path: root/doc/script_commands.txt
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2013-08-26 19:14:26 +0200
committerHaru <haru@dotalux.com>2013-08-26 20:46:44 +0200
commit835188124a6e590b406d81803b8d47f07884a9ea (patch)
tree271b52ae3aa595d83f2f031f761983bd4d629a6f /doc/script_commands.txt
parentcccc5bc9256b196b1f4e9ad881838ad32c8b3424 (diff)
downloadhercules-835188124a6e590b406d81803b8d47f07884a9ea.tar.gz
hercules-835188124a6e590b406d81803b8d47f07884a9ea.tar.bz2
hercules-835188124a6e590b406d81803b8d47f07884a9ea.tar.xz
hercules-835188124a6e590b406d81803b8d47f07884a9ea.zip
Added an integer overflow check on literal values in the script parser
- When attempting to use a value greater than INT_MAX or smaller than INT_MIN (about +/- 2 billions), an error message will be shown and script execution will be aborted. - Corrected some scripts that were attempting to use such values. - Fixed some possible issues when using literal negative values in scripts. Thanks to Ind for his help on this issue (figuring it out and fixing it) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'doc/script_commands.txt')
-rw-r--r--doc/script_commands.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 2e8afe5dd..b10c7aef0 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -404,7 +404,9 @@ are otherwise identical. Writing a number like '0x<hex digits>' will make
it recognized as a hexadecimal value. Notice that 0x10 is equal to 16.
Also notice that if you try to 'mes 0x10' it will print '16'.
-This is not used much, but it pays to know about it.
+Number values can't exceed the limits of an integer variable: Any number
+greater than INT_MAX (2147483647) or smaller than INT_MIN (-2147483648) will
+not be recognized.
Variables
---------