[SSSD] [PATCH] Fix segmentation fault in test_io.

Abhishek Singh abhishekkumarsingh.cse at gmail.com
Mon Apr 22 11:59:05 UTC 2013


changes done. Please check the patch.


On Mon, Apr 22, 2013 at 12:55 PM, Jakub Hrozek <jhrozek at redhat.com> wrote:

> On Tue, Apr 16, 2013 at 07:27:20PM +0530, Abhishek Singh wrote:
> > Changes done. Please check the patch.
> >
> > thanks,
> >
>
> Hi Abishek
>
> let's do one last change before I push the patch -- test the strdup
> output for being non-NULL and then free the duplicate when it's not
> needed:
>
>     basec = strdup(get_filepath(path));
> +   assert_non_null(basec);
>     relativepath = basename(basec);
>     fd = sss_openat_cloexec(dir_fd, relativepath, flags, &ret);
> +   free(basec)
>
>
> Thanks for the patch!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20130422/e4c74b7e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-segmentation-fault-in-test_io.patch
Type: application/octet-stream
Size: 3031 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20130422/e4c74b7e/attachment.obj>


More information about the sssd-devel mailing list