diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/ntlmssp/ntlmssp_parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/auth/ntlmssp/ntlmssp_parse.c b/source4/auth/ntlmssp/ntlmssp_parse.c index 8e31d814d0..e1c1e7cbb3 100644 --- a/source4/auth/ntlmssp/ntlmssp_parse.c +++ b/source4/auth/ntlmssp/ntlmssp_parse.c @@ -241,7 +241,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx, ret = false; goto cleanup; } - if (blob->data + ptr < (uint8_t *)ptr || + if (blob->data + ptr < (uint8_t *)(uintptr_t)ptr || blob->data + ptr < blob->data) { ret = false; goto cleanup; @@ -276,7 +276,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx, goto cleanup; } - if (blob->data + ptr < (uint8_t *)ptr || + if (blob->data + ptr < (uint8_t *)(uintptr_t)ptr || blob->data + ptr < blob->data) { ret = false; goto cleanup; @@ -311,7 +311,7 @@ bool msrpc_parse(TALLOC_CTX *mem_ctx, goto cleanup; } - if (blob->data + ptr < (uint8_t *)ptr || + if (blob->data + ptr < (uint8_t *)(uintptr_t)ptr || blob->data + ptr < blob->data) { ret = false; goto cleanup; |