[SCM] Samba Shared Repository - branch v3-devel updated -
release-3-2-0pre2-3949-g9daea0c
Volker Lendecke
vlendec at samba.org
Mon Sep 1 11:49:32 GMT 2008
The branch, v3-devel has been updated
via 9daea0ccfdda58450be3c9a9a94c016f5900c319 (commit)
from 67c0835226e189deba5856710a1dea19ac5f30fd (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-devel
- Log -----------------------------------------------------------------
commit 9daea0ccfdda58450be3c9a9a94c016f5900c319
Author: Volker Lendecke <vl at sernet.de>
Date: Mon Sep 1 13:46:27 2008 +0200
Fix Coverity ID 587
The following test program prints "8" on 64-bit :-)
static void print_size(const char lenbuf[4])
{
printf("sizeof(lenbuf) = %d\n", (int)sizeof(lenbuf));
}
int main(void)
{
const char lenbuf[4];
print_size(lenbuf);
return 0;
}
Jeremy, please check :-)
Volker
-----------------------------------------------------------------------
Summary of changes:
source/smbd/process.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/smbd/process.c b/source/smbd/process.c
index 332a2e4..b2d19e1 100644
--- a/source/smbd/process.c
+++ b/source/smbd/process.c
@@ -164,7 +164,7 @@ static NTSTATUS receive_smb_raw_talloc_partial_read(TALLOC_CTX *mem_ctx,
ssize_t toread;
NTSTATUS status;
- memcpy(writeX_header, lenbuf, sizeof(lenbuf));
+ memcpy(writeX_header, lenbuf, 4);
status = read_socket_with_timeout(
fd, writeX_header + 4,
--
Samba Shared Repository
More information about the samba-cvs
mailing list