Bug 13036 - ctdb-client: Initialize ctdb_ltdb_header completely for empty record
Summary: ctdb-client: Initialize ctdb_ltdb_header completely for empty record
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: CTDB (show other bugs)
Version: 4.7.0rc5
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Stefan Metzmacher
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-16 06:54 UTC by Stefan Metzmacher
Modified: 2017-10-03 07:32 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Metzmacher 2017-09-16 06:54:51 UTC
ctdb_ltdb_fetch() only fills in relevant portion of ctdb_ltdb_header
if the record does not exist.  This can result in uninitialized writes
to ctdb_rec_buffer.
Comment 1 Stefan Metzmacher 2017-09-17 16:54:47 UTC
Pushed to v4-{6,7}-test with review from slow@samba.org
Comment 2 Stefan Metzmacher 2017-10-03 07:32:14 UTC
This is part of samba-4.7.0rc6