libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] MHD_destroy_post_processor() is unsafe


From: Christian Grothoff
Subject: Re: [libmicrohttpd] MHD_destroy_post_processor() is unsafe
Date: Thu, 24 Nov 2011 15:01:27 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20111010 Icedove/3.1.15

Well, if creating the PP failed, why would you try to destroy it? ;-).

I don't think that any function has to work nicely when being called with NULL (unless specified that it should accept NULL, of course).

Happy hacking,

Christian

On 11/24/2011 01:35 PM, Andreas Wehrmann wrote:
I ran into a segfault today, caused by passing NULL to
MHD_destroy_post_processor().
This function doesn't check whether *pp is NULL, see
postprocessor.c:1027 (version 0.9.17).

Regards,
Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]