From: Arran Cudbard-Bell Date: Wed, 15 Sep 2021 14:33:27 +0000 (-0500) Subject: Additional tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3761798057fd8206b590e2da8ae4d7c76f3fbe9a;p=thirdparty%2Ffreeradius-server.git Additional tests --- diff --git a/src/tests/unit/protocols/radius/time_delta.txt b/src/tests/unit/protocols/radius/time_delta.txt index 19d97df88ca..97ae98c219c 100644 --- a/src/tests/unit/protocols/radius/time_delta.txt +++ b/src/tests/unit/protocols/radius/time_delta.txt @@ -57,6 +57,16 @@ match Unit-TLV = { Delta-MSec-int16 = -32768 } attribute Unit-TLV.Delta-MSec-int16 = -32768 match Unit-TLV.Delta-MSec-int16 = -32768 +# Regression test for broken signed promotion +encode-pair Unit-TLV.Delta-MSec-int32 = -32768 +match fe 08 0a 06 ff ff 80 00 + +decode-pair - +match Unit-TLV = { Delta-MSec-int32 = -32768 } + +attribute Unit-TLV.Delta-MSec-int32 = -32768 +match Unit-TLV.Delta-MSec-int32 = -32768 + # # Min/Max values & overflows #