[389-devel] Please Review: (514824) Multi-macro ACIs can cause double free if macro attribute does not exist
Nathan Kinder
nkinder at redhat.com
Fri Jul 31 00:10:39 UTC 2009
On 07/30/2009 03:37 PM, Nathan Kinder wrote:
> https://bugzilla.redhat.com/show_bug.cgi?id=514824
> ------------------------------------------------------------------------
>
> --
> 389-devel mailing list
> 389-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-directory-devel
>
Here's a new patch that addresses some issues Noriko brought up.
The list "a" was being set to NULL when we found an attribute match for a
macro, but this is no longer necessary now that we reset "a" to NULL
when the
memory is handed off to the working_list (which covers both the cases of
finding/not finding the attribute).
We were also accessing element 0 of list "a" right after handing the
memory off
to the working_list, but we weren't checking if "a" was NULL first. I don't
believe that "a" could be NULL at this point, but it's safest to check
first in
case there is some corner case we're not considering.
-NGK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20090730/66da6da5/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Bug-514824-Fix-double-free-in-macro-ACI-code.patch
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20090730/66da6da5/attachment.ksh>
More information about the Fedora-directory-devel
mailing list