summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/rawrequest.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-04-17 18:44:48 +0200
committerAndrew Bartlett <abartlet@samba.org>2008-04-17 18:44:48 +0200
commit22bbb0ebe67bc1eb4014d399edcf03340fd6c803 (patch)
tree28a62f0221e2c499ee108c205567033dbafa54da /source4/libcli/raw/rawrequest.c
parentc9a12fa55d63e4bccb5b453186022dae1da39032 (diff)
parent3180cbbc5b3396da07c325166e472b143b3abe1e (diff)
downloadsamba-22bbb0ebe67bc1eb4014d399edcf03340fd6c803.tar.gz
samba-22bbb0ebe67bc1eb4014d399edcf03340fd6c803.tar.bz2
samba-22bbb0ebe67bc1eb4014d399edcf03340fd6c803.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 43fc10aaa7c3d50cb9fee5ecab859103aec4a62e)
Diffstat (limited to 'source4/libcli/raw/rawrequest.c')
-rw-r--r--source4/libcli/raw/rawrequest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libcli/raw/rawrequest.c b/source4/libcli/raw/rawrequest.c
index a42c710547..ef856c6ea1 100644
--- a/source4/libcli/raw/rawrequest.c
+++ b/source4/libcli/raw/rawrequest.c
@@ -700,10 +700,10 @@ DATA_BLOB smbcli_req_pull_blob(struct request_bufinfo *bufinfo, TALLOC_CTX *mem_
static bool smbcli_req_data_oob(struct request_bufinfo *bufinfo, const uint8_t *ptr, uint32_t count)
{
/* be careful with wraparound! */
- if (ptr < bufinfo->data ||
- ptr >= bufinfo->data + bufinfo->data_size ||
+ if ((uintptr_t)ptr < (uintptr_t)bufinfo->data ||
+ (uintptr_t)ptr >= (uintptr_t)bufinfo->data + bufinfo->data_size ||
count > bufinfo->data_size ||
- ptr + count > bufinfo->data + bufinfo->data_size) {
+ (uintptr_t)ptr + count > (uintptr_t)bufinfo->data + bufinfo->data_size) {
return true;
}
return false;