]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add underflow for uint32
authorAlan T. DeKok <aland@freeradius.org>
Sat, 4 Dec 2021 23:36:52 +0000 (18:36 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 4 Dec 2021 23:40:36 +0000 (18:40 -0500)
src/tests/unit/calc.txt

index c07f5af2d401446fbaf1d34ef3bce5f96741083d..330e75a120e95d6a7da9ece52d7b7797aa629447 100644 (file)
@@ -29,6 +29,9 @@ match 64
 calc uint8 5 - uint8 16 -> uint8
 match Value overflows/underflows when calculating answer for uint8
 
+calc uint32 5 - uint32 16 -> uint32
+match Value overflows/underflows when calculating answer for uint32
+
 #
 #  Intermediate values are too large for destination, but the
 #  resulting value can fit.
@@ -139,4 +142,4 @@ calc string "2" += string "test"
 match 2test
 
 count
-match 56
+match 58