diff options
author | Anders Svensson <[email protected]> | 2011-12-04 12:06:30 +0100 |
---|---|---|
committer | Anders Svensson <[email protected]> | 2011-12-05 11:10:58 +0100 |
commit | f51fa7f2a67cfdcbf98edaa79db32c54e5ee4af0 (patch) | |
tree | 18ed3b20b7db7e031a7f56aa72efd5d6d2309ae4 /lib/diameter/test/diameter_compiler_SUITE.erl | |
parent | 22f9111ef12ed58aeb5a15ed55a983c9b19cddb8 (diff) | |
download | otp-f51fa7f2a67cfdcbf98edaa79db32c54e5ee4af0.tar.gz otp-f51fa7f2a67cfdcbf98edaa79db32c54e5ee4af0.tar.bz2 otp-f51fa7f2a67cfdcbf98edaa79db32c54e5ee4af0.zip |
Add range checks on dictionary integers
Check that values that should be Unsigned32 actually are.
Diffstat (limited to 'lib/diameter/test/diameter_compiler_SUITE.erl')
-rw-r--r-- | lib/diameter/test/diameter_compiler_SUITE.erl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/diameter/test/diameter_compiler_SUITE.erl b/lib/diameter/test/diameter_compiler_SUITE.erl index e2f4b3c931..a224a4f12e 100644 --- a/lib/diameter/test/diameter_compiler_SUITE.erl +++ b/lib/diameter/test/diameter_compiler_SUITE.erl @@ -58,6 +58,15 @@ {avp_code_already_defined, "480", "485"}, + {uint32_out_of_range, + "@id 0", + "@id 4294967296"}, + {uint32_out_of_range, + "@vendor 0", + "@vendor 4294967296"}, + {uint32_out_of_range, + [{"^ *Failed-AVP .*$", "&V"}, + {"@avp_types", "@avp_vendor_id 4294967296 Failed-AVP\n&"}]}, {imported_avp_already_defined, "@avp_types", "@inherits diameter_gen_base_rfc3588 &"}, |