git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
329fcd4
)
s3: Fix Coverity ID 2317: Uninitialized read
author
Volker Lendecke
<vl@samba.org>
Wed, 16 Mar 2011 16:19:13 +0000
(17:19 +0100)
committer
Volker Lendecke
<vl@samba.org>
Wed, 16 Mar 2011 17:08:51 +0000
(18:08 +0100)
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
source3/rpc_server/spoolss/srv_spoolss_util.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/spoolss/srv_spoolss_util.c
b/source3/rpc_server/spoolss/srv_spoolss_util.c
index 0640c28845fedcd2a4b22e996ecb9836225dcf8f..c4e53419218c2b7adc59da073c3b3588b8594060 100644
(file)
--- a/
source3/rpc_server/spoolss/srv_spoolss_util.c
+++ b/
source3/rpc_server/spoolss/srv_spoolss_util.c
@@
-776,7
+776,7
@@
static WERROR winreg_printer_write_date(TALLOC_CTX *mem_ctx,
const char *value,
NTTIME data)
{
- struct winreg_String wvalue;
+ struct winreg_String wvalue
= { 0, }
;
DATA_BLOB blob;
WERROR result = WERR_OK;
NTSTATUS status;