gnash
[Top][All Lists]
Advanced

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

Re: [Gnash] Patch: Give error for unhandled SWF events


From: Dag Hovland
Subject: Re: [Gnash] Patch: Give error for unhandled SWF events
Date: Wed, 18 Jan 2006 21:59:14 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; nb-NO; rv:1.7.12) Gecko/20060109

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

Michael Carlson:
> Download this file : http://protu.it.helsinki.fi/~lindi/google-video.swf
> 
> Then, try opening it locally with gnash, using the "-va" command switch
> (for verbose Movie Actions). The program will crash with an assertion
> error. After some investigating, I realized that in server/impl.cpp,
> swf_event::read(), we don't do any sort of check to see if the event
> flag that was sent to us is known and handled by the program. This patch
> simply adds a log_error statement, letting you know that an event was
> received that is unknown and unhandled, the hex code of the event, as
> well as an appropriate comment in the source explaining this check.
> 
After looking at corresponding code in gplflash2 (ClipEventFlags in
lib/swf.hh), it seems that the offending event is named CONSTRUCT. From
the code in lib/swf_decoder, line 558, it seems to have been added in
swf v6, together with key_press and and drag_out, though I cannot see
this in other docs.

I have tried to do some fixing, but at the moment it still crashes on
the google-video (the "as_environment" is popped when empty), probably
because the "CONSTRUCT" has to be implemented in some way I do not know.

Dag Hovland
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDzqwhxcsAsac+K+IRApYtAJ4keJzi1CV9mornmBHp9dx9+VedfgCgxIY/
07TYjW+I4vsKniWel872YKk=
=68Vy
-----END PGP SIGNATURE-----




reply via email to

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