1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

claims.idl: Use ‘int64’ instead of ‘dlong’ for INT64 claims

This field is supposed to be aligned to eight bytes, but the ‘dlong’
type is aligned to only four bytes. This discrepancy resulted in claims
being encoded and decoded incorrectly.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15452

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit aa1815519ce1412cdf25927b54b5178113cdd2a7)
This commit is contained in:
Joseph Sutton 2023-08-15 12:31:54 +12:00 committed by Jule Anger
parent d5e0f9af62
commit 313c9a7598
2 changed files with 1 additions and 2 deletions

View File

@ -50,7 +50,7 @@ interface claims
typedef struct {
[range(1, 10*1024*1024)] uint32 value_count;
[size_is(value_count)] dlong *values;
[size_is(value_count)] int64 *values;
} CLAIM_INT64;
typedef struct {

View File

@ -1 +0,0 @@
^samba\.tests\.krb5\.claims_in_pac\.samba\.tests\.krb5\.claims_in_pac\.PacClaimsTests\.test_pac_int64_claims\(none\)$