[Date Prev][Date Next]
Re: (ITS#7954) [LMDB] fix uninitialize struct member.
- To: openldap-its@OpenLDAP.org
- Subject: Re: (ITS#7954) [LMDB] fix uninitialize struct member.
- From: email@example.com
- Date: Thu, 02 Oct 2014 21:03:41 +0000
- Auto-submitted: auto-generated (OpenLDAP-ITS)
Jean-Christophe DUBOIS wrote:
> Le 10/02/2014 10:41 PM, Howard Chu a écrit :
>> firstname.lastname@example.org wrote:
>>> Full_Name: Jean-Christophe Dubois
>>> Version: 2.4.40
>>> OS: Linux
>>> URL: ftp://ftp.openldap.org/incoming/
>>> Submission from: (NULL) (188.8.131.52)
>>> In the mdb_env_cwalk() function the mc_flags member of the "mc"
>>> instance is not initialized.
>>> But in the mdb_page_search_root() called a bit later (line 8407) this
>>> flag will
>>> be updated from this uninitialized value.
>>> The mc_flags member needs to be initialized to a known value.
>> The mc_flags member is never referenced again, so this is irrelevant.
> It is referenced here:
Yes. But, as I said already, it is never referenced again.
> This function(mdb_page_search_root()) is called from mdb_env_cwalk()
> with a reference to mc. and mc_flages is not initialized.
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/