Skip to content

Commit

Permalink
claims.idl: Use ‘int64’ instead of ‘dlong’ for INT64 claims
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
(cherry picked from commit aa18155)
  • Loading branch information
jsutton24 authored and Jule Anger committed Aug 17, 2023
1 parent d5e0f9a commit 313c9a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion librpc/idl/claims.idl
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion selftest/knownfail.d/claims-in-pac

This file was deleted.

0 comments on commit 313c9a7

Please sign in to comment.