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

Re: Warnings in mdb.c generated by CodeSonar



Christian Wendt wrote:

> The second error is triggered by the loop freeing loose pages at line 3451 in mdb.c: NEXT_LOOSE_PAGE(mp) would access memory that is freed before, if mp points
> to an overflow page with more than one page allocated. If this is never the case, then maybe mdb_page_free() should be called on mp directly?

Overflow pages are never loose. The code is correct.

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