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

Re: (ITS#7959) [LMDB] check fstat return value.



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 mdb_env_copyfd0() the function fstat() is called but the return value is not
> checked.
>
> There is no reason not to check if the system call is successful as the result
> is used just after.
>
> Patch available at URL below:
>
> https://github.com/jcduboi2F2Flmdb/commit/fda581a6dd2e56fac4cab2aa872753f6f0993680

Thanks, fixed in mdb.master.

Please read http://www.openldap.org/devel/contributing.html re: submission 
formats.
>
> 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/