search for: swfdec_as_object_decod

Displaying 12 results from an estimated 12 matches for "swfdec_as_object_decod".

2007 Oct 25
0
libswfdec/swfdec_as_object.c
libswfdec/swfdec_as_object.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) New commits: commit 429b50907703001fb58cf9840751844b0b8ea839 Author: Benjamin Otte <otte at gnome.org> Date: Thu Oct 25 16:22:12 2007 +0200 rework swfdec_as_object_decode() It used to unescape before looking for = or & signs Also, it had 2 memleaks I should probably add a test for this... diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index 6cd0661..39a8da5 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swf...
2007 Nov 10
0
[PATCH] swfdec: better variable parsing.
Use swfdec_as_object_decode for parsing variables passed in webpages to flash. swfdec_movie_set_variables (and friends) can't stuff like an url being passed in the value of a variable and other things. Pages which where broken included the flash at the upper right corner of http://www.kanal5.se and the presentation of h...
2007 Nov 12
0
2 commits - libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/various
...code_SOURCES = urlencode.c -urlencode_CFLAGS = $(GLOBAL_CFLAGS) $(SWFDEC_CFLAGS) $(CAIRO_CFLAGS) -urlencode_LDFLAGS = $(SWFDEC_LIBS) $(CAIRO_LIBS) - commit b72f91ccfcdd70cc3f9b6edbc4b59cce97263990 Author: Andreas Henriksson <andreas at fatal.se> Date: Mon Nov 12 20:55:41 2007 +0100 Use swfdec_as_object_decode for parsing variables passed in webpages to flash. swfdec_movie_set_variables (and friends) can't stuff like an url being passed in the value of a variable and other things. Pages which where broken included the flash at the upper right corner of http://www.kanal5.se and t...
2007 Dec 05
0
4 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_policy_loader.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_format.c
...ka.lampila at iki.fi> Date: Tue Dec 4 09:58:18 2007 +0200 Fix an assert in LoadVariables code diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index d1995c8..194f858 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -1649,6 +1649,9 @@ swfdec_as_object_decode (SwfdecAsObject *object, const char *str) char **varlist, *p, *unescaped; guint i; + g_return_if_fail (SWFDEC_IS_AS_OBJECT (object)); + g_return_if_fail (str != NULL); + varlist = g_strsplit (str, "&", -1); for (i = 0; varlist[i] != NULL; i++) { diff --git a/libswfd...
2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
...end_c (string, '\xc2'); string = g_string_append_c (string, xml_entities[i].character); p += strlen (xml_entities[i].escaped); commit 813bf7cc84c4d188074a72ad49ad6f79305f7f4e Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Wed Oct 31 11:22:00 2007 +0200 Fix asserts in swfdec_as_object_decode diff --git a/libswfdec/swfdec_as_object.c b/libswfdec/swfdec_as_object.c index 682cb2b..d0709ac 100644 --- a/libswfdec/swfdec_as_object.c +++ b/libswfdec/swfdec_as_object.c @@ -1557,7 +1557,7 @@ swfdec_as_object_decode (SwfdecAsObject *object, const char *str) { SwfdecAsContext *cx = object-&...
2007 Nov 03
1
a couple of swfdec patches.
Missed you on #swfdec, so I'll throw you this mail instead. Please be critical to these patches as it's way to late for me to write code and I haven't really double-checked they are correct as my brain went to sleep hours ago, but they seem to work in my minimal testing. ;) Ran into this use-after-free... http://www.fatal.se/tmp/swf/swfdec-use-after-free.diff (attached). While
2007 Nov 12
0
2 commits - libswfdec/swfdec_loadvars_as.c test/trace
...--- a/libswfdec/swfdec_loadvars_as.c +++ b/libswfdec/swfdec_loadvars_as.c @@ -39,7 +39,7 @@ void swfdec_loadvars_decode (SwfdecAsContext *cx, SwfdecAsObject *obj, guint argc, SwfdecAsValue *argv, SwfdecAsValue *rval) { - if (argc < 1) + if (argc < 1 || obj == NULL) return; swfdec_as_object_decode (obj, swfdec_as_value_to_string (cx, &argv[0]));
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800 release 0.5.4 ("Turkish Cycling Federation") -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/ R5PF4bZQqmSdJ64t8EbD4cA= =8qBy -----END PGP SIGNATURE----- Changes since the dawn of time: Benjamin Otte (40):
2007 Oct 25
0
12 commits - libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c test/trace
...ff --git a/libswfdec/swfdec_as_internal.h b/libswfdec/swfdec_as_internal.h index 374232d..6dc088d 100644 --- a/libswfdec/swfdec_as_internal.h +++ b/libswfdec/swfdec_as_internal.h @@ -71,9 +71,7 @@ void swfdec_as_object_init_context (SwfdecAsContext * context, guint version); void swfdec_as_object_decode (SwfdecAsObject * obj, const char * str); -SwfdecAsObject * swfdec_as_object_prototype_for_version (SwfdecAsObject *object, - guint version, - gboolean check7); +SwfdecAsObject * swfdec_as_object_get_prototype (SwfdecAsObject * object); void swfdec_as_object_run_with_sec...
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...(cx), target, url, method, NULL, NULL); } else { diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c index 2d23569..2829f46 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -1567,7 +1567,8 @@ swfdec_movie_load_variables_on_finish (SwfdecAsObject *target, { swfdec_as_object_decode (target, text); - if (target->context->version >= 6) + // only call onData for sprite movies + if (target->context->version >= 6 && SWFDEC_IS_SPRITE_MOVIE (target)) swfdec_as_object_call (target, SWFDEC_AS_STR_onData, 0, NULL, NULL); } commit b6dd3646e92668be...
2007 Oct 17
0
28 commits - configure.ac debian/changelog debian/control debian/copyright debian/.gitignore debian/libswfdec0.dirs debian/libswfdec0.files debian/libswfdec0.shlibs debian/libswfdec-dev.dirs debian/libswfdec-dev.files debian/rules debian/swf-player.dirs
...org> Date: Wed Oct 17 19:26:39 2007 +0200 add swfdec_as_object_run_with_security() diff --git a/libswfdec/swfdec_as_internal.h b/libswfdec/swfdec_as_internal.h index df7e70a..ee49ef2 100644 --- a/libswfdec/swfdec_as_internal.h +++ b/libswfdec/swfdec_as_internal.h @@ -66,6 +66,10 @@ void swfdec_as_object_decode (SwfdecAsObject * obj, SwfdecAsObject * swfdec_as_object_prototype_for_version (SwfdecAsObject *object, guint version, gboolean check7); +void swfdec_as_object_run_with_security + (SwfdecAsObject * object, + SwfdecScript * script, + SwfdecSecurity * sec);...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...internal.h" #include "swfdec_sprite.h" @@ -1161,6 +1162,18 @@ swfdec_action_get_url (SwfdecAsContext *cx, guint action, const guint8 *data, gu } static void +swfdec_as_interpret_load_variables_on_finish (SwfdecAsObject *target, + const char *text) +{ + if (text != NULL) + swfdec_as_object_decode (target, text); + + // only call onData for sprite movies + // FIXME: is it called even when loading fails? + swfdec_movie_queue_script (SWFDEC_MOVIE (target), SWFDEC_EVENT_DATA); +} + +static void swfdec_action_get_url2 (SwfdecAsContext *cx, guint action, const guint8 *data, guint len) {...