Permalink
Browse files

FR-GV-305 read the correct offset instead of uninitialized memory

  • Loading branch information...
alandekok committed Jul 3, 2017
1 parent 19a18bf commit de3b3b2e4153db26442facbd5e9b268a3bf795ba
Showing with 8 additions and 1 deletion.
  1. +1 −1 src/lib/radius.c
  2. +1 −0 src/tests/dictionary.test
  3. +6 −0 src/tests/unit/wimax.txt
@@ -4086,7 +4086,7 @@ ssize_t data2vp(TALLOC_CTX *ctx,
break;

case PW_TYPE_SIGNED: /* overloaded with vp_integer */
memcpy(&vp->vp_integer, buffer, 4);
memcpy(&vp->vp_integer, data, 4);
vp->vp_integer = ntohl(vp->vp_integer);
break;

@@ -7,4 +7,5 @@ BEGIN-VENDOR TEST
ATTRIBUTE Test-Name 1 string
ATTRIBUTE Test-Number 2 integer
ATTRIBUTE Test-Server-Port 3 integer
ATTRIBUTE Test-Signed 4 signed
END-VENDOR TEST
@@ -155,3 +155,9 @@ data WiMAX-Release = "EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
decode 1a 0b 00 00 60 b5 31 05 80 00 00
data Attr-26 = 0x000060b53105800000

encode WiMAX-GMT-Timezone-offset = -1
data 1a 0d 00 00 60 b5 03 07 00 ff ff ff ff

decode -
data WiMAX-GMT-Timezone-offset = -1

0 comments on commit de3b3b2

Please sign in to comment.