httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: [PATCH] (flood) Handle invalid handler name in assign_profile_event_handler()
Date Fri, 07 Feb 2003 07:39:03 GMT
committed, thanks!

-aaron


On Thursday, February 6, 2003, at 07:45  PM, ptran@pobox.com wrote:

> Summary:
>      Fixed assign_profile_event_handler() to handle nonexistent names.
>
> This patch fixes a null dereference when you specify a profile event
> handler that does not exist in the profile_event_handlers[] table.
> Below is the smallest test case I was able to generate to trigger
> the crash.  Note that the entry for "profile_init" is "XXX".
>
> <flood>
>   <profile>
>     <name>profile</name>
>     <profile_init>XXX</profile_init>
>   </profile>
>   <farmer>
>     <name>farmer</name>
>     <useprofile>profile</useprofile>
>   </farmer>
>   <farm>
>     <name>Bingo</name>
>     <usefarmer>farmer</usefarmer>
>   </farm>
> </flood>
>
> With this patch, flood generates the following message:
>   Invalid implementation (XXX) for this handler (profile_init)
>   Error running farmer 'farmer': This function has not been 
> implemented on this platform.


Mime
View raw message