git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check for overflow in numeric expansion conditions; forbid negative
[users/jgh/exim.git]
/
test
/
stdout
/
0002
diff --git
a/test/stdout/0002
b/test/stdout/0002
index e437faded85f79fad81e6fddbe7c880d7fa5a7e1..96d4047ac4fc1c6089281fdac9ace07b5095d8b3 100644
(file)
--- a/
test/stdout/0002
+++ b/
test/stdout/0002
@@
-168,6
+168,11
@@
> md5: NO
> mask: NO
>
> md5: NO
> mask: NO
>
+> # Numeric overflow
+>
+> Failed: absolute value of integer "4096M" is too large (overflow)
+> Failed: absolute value of integer "4096000000" is too large (overflow)
+>
> # Conditions
>
> 2=2: y
> # Conditions
>
> 2=2: y
@@
-181,6
+186,7
@@
> 2>3: n
> 3>3: n
> 4>3: y
> 2>3: n
> 3>3: n
> 4>3: y
+> 1>-1: y
> 2>=3: n
> 3>=3: y
> 4>=3: y
> 2>=3: n
> 3>=3: y
> 4>=3: y
@@
-191,11
+197,12
@@
> 3<=3: y
> 4<=3: n
> 5<=3: n
> 3<=3: y
> 4<=3: n
> 5<=3: n
+> -3<=1: y
>
> 5>3k: n
> 5>3m: n
>
> 5>3k: n
> 5>3m: n
-> Failed:
"3z " is not a number
-> Failed:
"a" is not a number
+> Failed:
invalid integer "3z "
+> Failed:
integer expected but "a" found
>
> def:y y
> def:n n
>
> def:y y
> def:n n