[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnash-commit] gnash ChangeLog server/StreamProvider.cpp serve...
From: |
strk |
Subject: |
Re: [Gnash-commit] gnash ChangeLog server/StreamProvider.cpp serve... |
Date: |
Tue, 30 Oct 2007 08:55:48 +0100 |
On Mon, Oct 29, 2007 at 09:07:35PM +0000, Chad Musick wrote:
> void
> -SWFHandlers::ActionImplementsOp(ActionExec& /*thread*/)
> +SWFHandlers::ActionImplementsOp(ActionExec& thread)
...
> + while (count--)
> + {
> + as_object *inter =
> env.pop().to_as_function()->getPrototype().get();
> + obj->add_interface(inter);
> + }
> }
The loop body above is assuming the values on the stack are all functions.
as_value::to_as_function() can return NULL, in which case the above will
segfault.
--strk;