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:
f0d4912
)
s3: Fix Coverity ID 2278: Uninitialized read
author
Volker Lendecke
<vl@samba.org>
Tue, 15 Mar 2011 10:09:26 +0000
(11:09 +0100)
committer
Volker Lendecke
<vl@samba.org>
Tue, 15 Mar 2011 10:10:46 +0000
(11:10 +0100)
We passed the structure including the uninitialized elements to
dcerpc_winreg_SetValue.
source3/rpc_client/cli_winreg.c
patch
|
blob
|
history
diff --git
a/source3/rpc_client/cli_winreg.c
b/source3/rpc_client/cli_winreg.c
index 893f4b040b0a7609786ee6017628d4c9aafaee11..5b8635f1e023415ab6c97a914433245f26181d17 100644
(file)
--- a/
source3/rpc_client/cli_winreg.c
+++ b/
source3/rpc_client/cli_winreg.c
@@
-538,7
+538,7
@@
NTSTATUS dcerpc_winreg_set_binary(TALLOC_CTX *mem_ctx,
DATA_BLOB *data,
WERROR *pwerr)
{
- struct winreg_String wvalue;
+ struct winreg_String wvalue
= { 0, }
;
WERROR result = WERR_OK;
NTSTATUS status;