Bug 14264

Summary: flash ad that kills your machine
Product: swfdec Reporter: Riccardo Magliocchetti <riccardo.magliocchetti>
Component: libraryAssignee: swfdec ml <swfdec>
Status: RESOLVED FIXED QA Contact: swfdec ml <swfdec>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Riccardo Magliocchetti 2008-01-27 04:57:47 UTC
If you are so unfortunate to run found this ad in a web page it will freeze your whole desktop :|

How to reproduce:

./swfplay 'http://dd.connextra.com/servlet/controller?service=080110_Football_Planet_300x250&tclk=%5Byour-click-command-here%5D&client=SportingbetGreece&placement=sportime_300x250&image=application%2Fx-shockwave-flash&clickTAG=http%3A//aa.connextra.com/servlet/redirect%3Ftarget%3Dhttp%253A%252F%252Fgr.sportingbet.com%26s%3D080110_Football_Planet_300x250%26a%3DSportingbetGreece%253Asportime_300x250%26tclk%3D%255Byour-click-command-here%255D&template=%2Fservices%2FUltraEditor%2FUltraAdImage.xml'

This is the pattern of the messages i get on the console:

SWFDEC: FIXME: swfdec_text_field_movie.c(1201): swfdec_text_field_movie_iterate: I'm pretty sure this is swfdec_player_add_action()'d
[...]
SWFDEC: FIXME: swfdec_text_field_movie.c(1201): swfdec_text_field_movie_iterate: I'm pretty sure this is swfdec_player_add_action()'d
SWFDEC: WARN : swfdec_movie.c(1676): swfdec_movie_set_static_properties: trying to set events on a SwfdecButtonMovie, not allowed

This is from a quick profile:

eurasia:/home/rm# opreport  -t 0.5 -l
warning: /no-vmlinux could not be found.
CPU: Athlon, speed 2079.63 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Cycles outside of halt state) with a unit mask of 0x00 (No unit mask) count 100000
warning: /usr/lib/locale/locale-archive is not in a usable binary format.
samples  %        app name                 symbol name
183254   40.5022  libglib-2.0.so.0.1400.5  g_list_remove
23072     5.0993  libswfdec-0.5.so.5.0.0   swfdec_ring_buffer_peek_nth
15098     3.3369  libgobject-2.0.so.0.1400.5 g_type_check_instance_cast
12670     2.8003  no-vmlinux               (no symbols)
10694     2.3636  libgobject-2.0.so.0.1400.5 __i686.get_pc_thunk.bx
10001     2.2104  libswfdec-0.5.so.5.0.0   swfdec_player_iterate
7779      1.7193  libswfdec-0.5.so.5.0.0   __i686.get_pc_thunk.bx
7624      1.6850  libswfdec-0.5.so.5.0.0   swfdec_movie_find
6825      1.5084  libglib-2.0.so.0.1400.5  g_hash_table_lookup
6611      1.4611  libswfdec-0.5.so.5.0.0   swfdec_sprite_movie_perform_one_action
6277      1.3873  libgobject-2.0.so.0.1400.5 g_type_check_instance_is_a
5581      1.2335  libswfdec-0.5.so.5.0.0   swfdec_bits_getbits
5581      1.2335  libswfdec-0.5.so.5.0.0   swfdec_sprite_movie_iterate_end
5264      1.1634  libswfdec-0.5.so.5.0.0   swfdec_movie_set_static_properties
4923      1.0881  libswfdec-0.5.so.5.0.0   swfdec_movie_get_own_resource
4506      0.9959  libswfdec-0.5.so.5.0.0   swfdec_bits_left
4354      0.9623  libswfdec-0.5.so.5.0.0   swfdec_movie_get_type
4304      0.9513  libswfdec-0.5.so.5.0.0   swfdec_ring_buffer_get_n_elements
4150      0.9172  libswfdec-0.5.so.5.0.0   swfdec_movie_iterate_end
4075      0.9006  libswfdec-0.5.so.5.0.0   swfdec_player_remove_all_actions
3924      0.8673  libswfdec-0.5.so.5.0.0   swfdec_bits_getbit
3870      0.8553  libm-2.7.so              atan2
3604      0.7965  libswfdec-0.5.so.5.0.0   swfdec_debug_log
3388      0.7488  libwx_gtk2u_core-2.6.so.0.3.1 (no symbols)
3365      0.7437  libswfdec-0.5.so.5.0.0   swfdec_as_object_get_prototype_internal
3316      0.7329  libswfdec-0.5.so.5.0.0   swfdec_movie_get_variable
3267      0.7221  libswfdec-0.5.so.5.0.0   swfdec_as_object_get_type
3186      0.7042  libswfdec-0.5.so.5.0.0   swfdec_bits_get_matrix
2806      0.6202  libswfdec-0.5.so.5.0.0   swfdec_movie_get_by_name
2798      0.6184  libswfdec-0.5.so.5.0.0   swfdec_sprite_movie_iterate
2296      0.5075  libswfdec-0.5.so.5.0.0   swfdec_sprite_movie_get_type
Comment 1 Benjamin Otte 2008-01-28 02:48:50 UTC
I guess this is "just" a performance issue.
Comment 2 Riccardo Magliocchetti 2008-04-11 08:53:53 UTC
This is working fine with swfdec git.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.