search for: swfdecasnativefunction

Displaying 20 results from an estimated 21 matches for "swfdecasnativefunction".

2007 May 18
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_native_function.h
...rame->function->min_args && - g_type_is_a (G_OBJECT_TYPE (frame->thisp), frame->function->type)) { - frame->function->native (frame->thisp, frame->argc, frame->argv, frame->return_value); + if (SWFDEC_IS_AS_NATIVE_FUNCTION (frame->function)) { + SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (frame->function); + if (frame->argc >= native->min_args && + (native->type == 0 || g_type_is_a (G_OBJECT_TYPE (frame->thisp), native->type))) { + native->native (frame->thisp, frame->argc, frame->argv, frame->...
2008 May 03
1
[Bug 15814] New: unable to view new york times feature
...vieClip" on object unknown SWFDEC: FIXME: swfdec_system_security.c(38): swfdec_system_security_allowDomain: System.security.allowDomain (static) is not implemented yet SWFDEC: WARN : swfdec_as_interpret.c(895): swfdec_action_call_method: no function named "broadcastMessage" on object SwfdecAsNativeFunction pathsloc:undefined SWFDEC: WARN : swfdec_sprite_movie_as.c(722): swfdec_sprite_movie_attachMovie: no symbol with name undefined exported SWFDEC: WARN : swfdec_as_interpret.c(895): swfdec_action_call_method: no function named "removeMovieClip" on object unknown SWFDEC: WARN : swfdec_as_int...
2007 May 21
0
Branch 'as' - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c
...n); }; GType swfdec_as_function_get_type (void); diff --git a/libswfdec/swfdec_as_native_function.c b/libswfdec/swfdec_as_native_function.c index b373e3a..edc2a09 100644 --- a/libswfdec/swfdec_as_native_function.c +++ b/libswfdec/swfdec_as_native_function.c @@ -30,12 +30,12 @@ G_DEFINE_TYPE (SwfdecAsNativeFunction, swfdec_as_native_function, SWFDEC_TYPE_AS_FUNCTION) static void -swfdec_as_native_function_call (SwfdecAsFunction *function, SwfdecAsObject *thisp) +swfdec_as_native_function_call (SwfdecAsFunction *function) { SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (function); Swfdec...
2007 Jul 13
0
12 commits - AUTHORS doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h
...t @@ -296,4 +296,35 @@ SWFDEC_AS_ARRAY_CLASS SWFDEC_AS_ARRAY_GET_CLASS SWFDEC_IS_AS_ARRAY SWFDEC_IS_AS_ARRAY_CLASS +SWFDEC_TYPE_AS_ARRAY +</SECTION> + +<SECTION> +<FILE>SwfdecAsFunction</FILE> +<TITLE>SwfdecAsFunction</TITLE> +SwfdecAsFunction +SwfdecAsNative +SwfdecAsNativeFunction +swfdec_as_function_create +swfdec_as_function_call +swfdec_as_native_function_new +swfdec_as_native_function_set_construct_type +swfdec_as_native_function_set_object_type +<SUBSECTION Standard> +swfdec_as_function_get_type +SwfdecAsFunctionClass +SWFDEC_AS_FUNCTION +SWFDEC_AS_FUNCTION_CLASS...
2008 Jun 02
4
[Bug 16206] New: Charts in Yahoo Finance crash swfdec
http://bugs.freedesktop.org/show_bug.cgi?id=16206 Summary: Charts in Yahoo Finance crash swfdec Product: swfdec Version: git Platform: Other URL: http://finance.yahoo.com/echarts?s=%5EDJI#symbol=%5EDJI; range=1d OS/Version: All Status: NEW Severity: critical Priority: medium
2007 May 22
0
Branch 'as' - 9 commits - libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c
...n); }; GType swfdec_as_function_get_type (void); diff --git a/libswfdec/swfdec_as_native_function.c b/libswfdec/swfdec_as_native_function.c index edc2a09..626a380 100644 --- a/libswfdec/swfdec_as_native_function.c +++ b/libswfdec/swfdec_as_native_function.c @@ -29,7 +29,7 @@ G_DEFINE_TYPE (SwfdecAsNativeFunction, swfdec_as_native_function, SWFDEC_TYPE_AS_FUNCTION) -static void +static SwfdecAsFrame * swfdec_as_native_function_call (SwfdecAsFunction *function) { SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (function); @@ -38,6 +38,7 @@ swfdec_as_native_function_call (SwfdecAs frame =...
2007 Aug 17
0
Branch 'vivi' - 9 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_function.h libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_native_function.c
...al.h" +#include "swfdec_as_internal.h" #include "swfdec_as_stack.h" #include "swfdec_debug.h" @@ -122,22 +123,23 @@ SwfdecAsFunction * swfdec_as_native_function_new (SwfdecAsContext *context, const char *name, SwfdecAsNative native, guint min_args) { - SwfdecAsNativeFunction *nfun; - SwfdecAsFunction *fun; + SwfdecAsNativeFunction *fun; g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL); g_return_val_if_fail (native != NULL, NULL); - fun = swfdec_as_function_create (context, SWFDEC_TYPE_AS_NATIVE_FUNCTION, - sizeof (SwfdecAsNativeFunction));...
2008 Apr 12
2
[Bug 15471] New: segmentation fault while seeking in youtube.com
...am_do_seek (cx=0xa846980, obj=0xb865100, argc=1, argv=0xc8973c8, rval=0xbfcc66b0) at swfdec_net_stream_as.c:139 d = 88.966131907308394 #3 0xb225b55c in swfdec_as_context_run (context=0xa846980) at swfdec_as_context.c:887 argv = (SwfdecAsValue *) 0xc8973c8 native = (SwfdecAsNativeFunction *) 0xab80228 rval = {type = SWFDEC_AS_TYPE_UNDEFINED, value = {boolean = 0, number = 0, string = 0x0, object = 0x0}} frame = (SwfdecAsFrame *) 0xdce4670 last_frame = (SwfdecAsFrame *) 0x0 spec = (const SwfdecActionSpec *) 0xb230bd30 startpc = (const guin...
2008 Jan 21
1
70 commits
Hey, In case someone filters commit mails or doesn't read 1MB blobs, I've just merged the result of me getting annoyed at various stuff. Unfortunately, this grew a bit out of hand and ended up being very huge. I expect this merge to have broken lots of things, so if you find stuff that used to work and now doesn't work (or even crashes), please poke me about it. What does this patch
2007 Jun 12
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c
...t;otte at gnome.org> Date: Tue Jun 12 21:56:24 2007 +0200 thisp may now be NULL diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index 5d4435a..a63cf4d 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -446,8 +446,7 @@ start: SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (frame->function); if (frame->argc >= native->min_args && (native->type == 0 || - (frame->thisp != NULL && - g_type_is_a (G_OBJECT_TYPE (frame->thisp), native->type)))) { + g_type_is_a (G_OBJECT_TYPE (frame-&g...
2007 Dec 02
2
[Bug 13491] New: 5min.com player causes assertion
...uot;, object = 0x1bfa750}} next = <value optimized out> __PRETTY_FUNCTION__ = "swfdec_as_frame_return" #5 0x00002aaaafbe72cb in swfdec_as_context_run (context=0x1bfa750) at swfdec_as_context.c:850 argv = (SwfdecAsValue *) 0x4dc3f10 native = (SwfdecAsNativeFunction *) 0x34b8820 rval = {type = SWFDEC_AS_TYPE_STRING, value = {boolean = -1346003103, number = 2.3177895010821281e-310, string = 0x2aaaafc59f61 "", object = 0x2aaaafc59f61}} frame = (SwfdecAsFrame *) 0x36a5d80 last_frame = (SwfdecAsFrame *) 0x0 spec...
2007 Sep 04
0
5 commits - doc/Makefile.am doc/swfdec-sections.txt libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_native_function.h
...SE; + return TRUE; +} diff --git a/libswfdec/swfdec_as_native_function.h b/libswfdec/swfdec_as_native_function.h index 4a1ab28..5d7923c 100644 --- a/libswfdec/swfdec_as_native_function.h +++ b/libswfdec/swfdec_as_native_function.h @@ -69,6 +69,27 @@ void swfdec_as_native_function_set_cons (SwfdecAsNativeFunction *function, GType type); +gboolean swfdec_as_native_function_check (SwfdecAsContext * cx, + SwfdecAsObject * object, + GType type, + gpointer * result, + guint argc, + SwfdecAsValue * argv, + const char * args, + ...); +gboolean swfde...
2008 Jun 17
2
[Bug 16395] New: glib abort for "double free or corruption" in jpeg code
...not implemented for 73 DefineFontAlignZones SWFDEC: WARN : swfdec_swf_decoder.c(342): swfdec_swf_decoder_parse_one: tag function not implemented for 73 DefineFontAlignZones SWFDEC: WARN : swfdec_as_interpret.c(879): swfdec_action_call_method: no function named "broadcastMessage" on object SwfdecAsNativeFunction *** glibc detected *** /usr/lib/iceweasel/firefox-bin: double free or corruption (out): 0x0a8d6500 *** ======= Backtrace: ========= /lib/libc.so.6[0xb71f88a5] /lib/libc.so.6(cfree+0x9c)[0xb71fa74c] /usr/lib/libglib-2.0.so.0(g_free+0x31)[0xb74465b1] /usr/local/lib/libswfdec-0.7.so.0[0xb1aeaf76] /usr...
2007 May 23
0
Branch 'as' - 7 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
...sumed frame->thisp != NULL diff --git a/libswfdec/swfdec_as_context.c b/libswfdec/swfdec_as_context.c index 1bca426..44ee604 100644 --- a/libswfdec/swfdec_as_context.c +++ b/libswfdec/swfdec_as_context.c @@ -418,7 +418,9 @@ start: if (SWFDEC_IS_AS_NATIVE_FUNCTION (frame->function)) { SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (frame->function); if (frame->argc >= native->min_args && - (native->type == 0 || g_type_is_a (G_OBJECT_TYPE (frame->thisp), native->type))) { + (native->type == 0 || + (frame->thisp != NULL && + !g_type_is_a...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...of arguments @@ -121,12 +124,13 @@ swfdec_as_native_function_init (SwfdecAs **/ SwfdecAsFunction * swfdec_as_native_function_new (SwfdecAsContext *context, const char *name, - SwfdecAsNative native, guint min_args) + SwfdecAsNative native, guint min_args, SwfdecAsObject *prototype) { SwfdecAsNativeFunction *fun; g_return_val_if_fail (SWFDEC_IS_AS_CONTEXT (context), NULL); g_return_val_if_fail (native != NULL, NULL); + g_return_val_if_fail (prototype == NULL || SWFDEC_IS_AS_OBJECT (prototype), NULL); if (!swfdec_as_context_use_mem (context, sizeof (SwfdecAsNativeFunction))) return N...
2007 Aug 16
0
Branch 'vivi' - 23 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_sprite_movie.c test/trace vivified/core
...*cur; + SwfdecAsValue val; guint size; GType type = 0; @@ -890,29 +891,30 @@ swfdec_as_object_create (SwfdecAsFunctio context = SWFDEC_AS_OBJECT (fun)->context; cur = fun; - while (type == 0 && cur != NULL) { + do { if (SWFDEC_IS_AS_NATIVE_FUNCTION (cur)) { SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (cur); if (native->construct_size) { type = native->construct_type; size = native->construct_size; + g_print ("type is %s\n", g_type_name (type)); break; } } -#if 0 - This doesn't work. It's supposed to figur...
2007 Jul 04
0
Branch 'as' - 25 commits - libswfdec/Makefile.am libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...as_native_function.c index 87f937d..a7554c1 100644 --- a/libswfdec/swfdec_as_native_function.c +++ b/libswfdec/swfdec_as_native_function.c @@ -59,6 +59,14 @@ swfdec_as_native_function_call (SwfdecAs return frame; } +static char * +swfdec_as_native_function_debug (SwfdecAsObject *object) +{ + SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (object); + + return g_strdup_printf ("%s ()", native->name); +} + static void swfdec_as_native_function_dispose (GObject *object) { @@ -74,10 +82,13 @@ static void swfdec_as_native_function_class_init (SwfdecAsNativeFunctionClass *klass) {...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...;last_frame) goto out; + if (context->call_depth > 256) { + /* we've exceeded our maximum call depth, throw an error and abort */ + swfdec_as_context_abort (context, "Stack overflow"); + return; + } if (SWFDEC_IS_AS_NATIVE_FUNCTION (frame->function)) { SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (frame->function); if (frame->argc >= native->min_args && diff-tree 41035d740f3910c483715f157f20845c14074794 (from f24ac118ee47065dac5b9f9c5fea1d98072485dc) Author: Benjamin Otte <otte at gnome.org> Date: Sun Jul 1 00:20:06 2007...
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
...is NULL, the function may not be called */ + if (frame->security == NULL) { + SWFDEC_WARNING ("insufficient right to call %s", frame->function_name); + swfdec_as_frame_return (frame, NULL); + goto start; + } if (SWFDEC_IS_AS_NATIVE_FUNCTION (frame->function)) { SwfdecAsNativeFunction *native = SWFDEC_AS_NATIVE_FUNCTION (frame->function); SwfdecAsValue rval = { 0, }; diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_frame.c index 619811c..1596041 100644 --- a/libswfdec/swfdec_as_frame.c +++ b/libswfdec/swfdec_as_frame.c @@ -29,6 +29,7 @@ #include "swfd...
2007 Aug 23
0
23 commits - doc/.gitignore doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_keys.c libswfdec-gtk/swfdec_gtk_keys.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am
...Date: Thu Aug 23 14:25:56 2007 +0200 that function is gone now diff --git a/doc/swfdec-sections.txt b/doc/swfdec-sections.txt index b6270bd..5f29752 100644 --- a/doc/swfdec-sections.txt +++ b/doc/swfdec-sections.txt @@ -349,7 +349,6 @@ SWFDEC_TYPE_AS_ARRAY SwfdecAsFunction SwfdecAsNative SwfdecAsNativeFunction -swfdec_as_function_create swfdec_as_function_call swfdec_as_native_function_new swfdec_as_native_function_set_construct_type diff-tree ce43b8df731dc8a0be767f5ff04d932003fa0d6f (from 0a375ca269392d9c4d0516bdaaef260871f6dca6) Author: Benjamin Otte <otte at gnome.org> Date: Thu Aug 23 14:2...