[389-devel] Please review (take 2): [389 Project] #48299: pagedresults - when timed out, search results could have been already freed.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://fedorahosted.org/389/ticket/48299

https://fedorahosted.org/389/attachment/ticket/48299/0001-Ticket-48299-pagedresults-when-timed-out-search-resu.patch
git patch file (master) -- revised; fixed a bug pointed out by Thierry (Thank you!!) and a minor memory leak.

On 09/30/2015 01:32 AM, 389 Project wrote:
Comment (by tbordaz):

  Hi noriko,

  The fix looks good, just two remarks
   * pagedresults_set_search_result_pb is called each time search result is
  freed. Should not it be called in opshared.c:722 (I find this line
  suspicious should not it be SLAPI_PAGED_RESULTS_INDEX ?)
   * in pagedresults_set_search_result_pb, you call slapi_pblock_set(pb,
  SLAPI_PAGED_RESULTS_INDEX, &index); . My understanding it is to reset the
  pr_idx (index==-1).  But later you test 'index'. Did you mean
  slapi_pblock_'''get'''(pb, SLAPI_PAGED_RESULTS_INDEX, &index).

--
389-devel mailing list
389-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-devel




[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux