Bug 7831 - initialize *output in srv_winreg_nt.c
Summary: initialize *output in srv_winreg_nt.c
Status: RESOLVED DUPLICATE of bug 7617
Alias: None
Product: Samba 3.5
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 3.5.6
Hardware: Other Windows XP
: P3 normal
Target Milestone: ---
Assignee: Michael Adam
QA Contact: Samba QA Contact
Depends on:
Reported: 2010-11-29 16:53 UTC by Grace Chen (mail address dead)
Modified: 2010-11-29 17:37 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Grace Chen (mail address dead) 2010-11-29 16:53:41 UTC
We saw that winbind coredumps if client send packets that query the server performance counters.

This is due to an uninitialized variable used. The issue can be fixed as:

In function _winreg_QueryValue(), source file source3/rpc_server/srv_winreg_nt.c
Following line should be changed:
uint8_t *outbuf;
uint8_t *outbuf = NULL;
Comment 1 Michael Adam 2010-11-29 17:30:20 UTC
Hi Grace,

thanks for the bug report!

This is actually a duplicate of bug #7617.
This has been fixed in 3.5.6.

So, have you really been looking into 3.5.6 code, or
possibly rather into 3.5.5. or earlier?

Best regards,

*** This bug has been marked as a duplicate of bug 7617 ***
Comment 2 Grace Chen (mail address dead) 2010-11-29 17:37:18 UTC
That's great! Sorry I was looking at 3.5.5.  
Thanks, -Grace