[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#7954) [LMDB] fix uninitialize struct member.



jcd@tribudubois.net wrote:
> Full_Name: Jean-Christophe Dubois
> Version: 2.4.40
> OS: Linux
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (78.235.240.156)
>
>
> In the mdb_env_cwalk() function the mc_flags  member of the "mc" MDB_cursor
> 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.
>
> Patch available at URL below:
>
> https://github.com/jcdubois/lmdb/commit/57d0d380a18957245c8a011e73564909966eb399
>
> JC
>
>


-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/