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

Re: (ITS#8401) mdb_env_stat crashes if env is not open

gahr@gahr.ch wrote:
> Full_Name: Pietro Cerutti
> Version: lmdb 0.9.18
> OS: FreeBSD
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> mdb_env_stat crashes is the env was created but not opened. This happens because
> mdb_env_stat calls mdb_env_pick_meta, which doesn't check whether the two pages
> are NULL before dereferencing them.
> Please note that there is no mention of the fact that the env must have been
> opened before calling mdb_env_stat in the documentation [1].

You're not reading carefully.


"Before the handle may be used, it must be opened using mdb_env_open()."

Closing this ITS.

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