Displaying 8 results from an estimated 8 matches for "swfdec_as_function_apply".
2007 Sep 14
0
4 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_object.c test/trace
...fix Function.apply
It used to free argv before calling swfdec_as_context_run()
diff --git a/libswfdec/swfdec_as_function.c b/libswfdec/swfdec_as_function.c
index 6cc40a4..3af3b46 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -172,6 +172,8 @@ void
swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *fun,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
+ SwfdecAsValue *argv_pass = NULL;
+ int length = 0;
SwfdecAsObject *thisp;
if (argc > 0) {
@@ -182,11 +184,10 @@ swfdec_as_function_apply (SwfdecAsContex
if (thisp == NULL)...
2008 Jun 02
4
[Bug 16206] New: Charts in Yahoo Finance crash swfdec
...bswfdec-0.7.so.0
#14 0x00007f770d9689a1 in swfdec_as_object_do_set () from
/usr/lib/libswfdec-0.7.so.0
#15 0x00007f770d95d8a2 in swfdec_action_set_member () from
/usr/lib/libswfdec-0.7.so.0
#16 0x00007f770d956973 in swfdec_as_context_run () from
/usr/lib/libswfdec-0.7.so.0
#17 0x00007f770d95bb1f in swfdec_as_function_apply () from
/usr/lib/libswfdec-0.7.so.0
#18 0x00007f770d956691 in swfdec_as_context_run () from
/usr/lib/libswfdec-0.7.so.0
#19 0x00007f770d95bbf7 in swfdec_as_function_do_call () from
/usr/lib/libswfdec-0.7.so.0
#20 0x00007f770d956691 in swfdec_as_context_run () from
/usr/lib/libswfdec-0.7.so.0
#21 0x...
2008 Jan 07
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_array.c libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_types.c libswfdec/swfdec_xml.c
...&val, num - 1);
swfdec_as_object_set_variable (fdata->object_new, var, &val);
}
diff --git a/libswfdec/swfdec_as_function.c b/libswfdec/swfdec_as_function.c
index ca1b735..5dce988 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -231,7 +231,7 @@ swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *object,
for (i = 0; i < length; i++) {
swfdec_as_object_get_variable (array,
- swfdec_as_double_to_string (cx, i), &argv_pass[i]);
+ swfdec_as_integer_to_string (cx, i), &argv_pass[i]);
}
} else {
length = 0;
dif...
2007 Nov 12
0
20 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_string.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player_as.c
...-git a/libswfdec/swfdec_as_function.c b/libswfdec/swfdec_as_function.c
index 2679b56..2c265c5 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -169,20 +169,21 @@ swfdec_as_function_do_call (SwfdecAsContext *cx, SwfdecAsObject *object,
SWFDEC_AS_NATIVE (101, 11, swfdec_as_function_apply)
void
-swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *fun,
+swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *object,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
SwfdecAsValue *argv_pass = NULL;
int length = 0;
+ SwfdecAsFunction *fun;
Swfdec...
2007 Nov 15
0
4 commits - libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_function.c libswfdec/swfdec_as_interpret.c test/trace
...@ swfdec_as_function_do_call (SwfdecAsContext *cx, SwfdecAsObject *object,
argc--;
argv++;
}
- cx->frame->caller = FALSE; // don't mark this function as the caller
swfdec_as_function_call (fun, thisp, argc, argv, ret);
swfdec_as_context_run (cx);
}
@@ -239,7 +238,6 @@ swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *object,
}
}
- cx->frame->caller = FALSE; // don't mark this function as the caller
swfdec_as_function_call (fun, thisp, length, argv_pass, ret);
swfdec_as_context_run (cx);
diff --git a/libswfdec/swfdec_asbroadcaster.c b/libswfdec/s...
2007 Sep 12
0
9 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player_as.c test/trace
...tion_do_call)
+void
swfdec_as_function_do_call (SwfdecAsContext *context, SwfdecAsObject *fun,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
@@ -166,7 +167,8 @@ swfdec_as_function_do_call (SwfdecAsCont
swfdec_as_context_run (context);
}
-static void
+SWFDEC_AS_NATIVE (101, 11, swfdec_as_function_apply)
+void
swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *fun,
guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
{
@@ -250,11 +252,6 @@ swfdec_as_function_init_context (SwfdecA
SWFDEC_AS_VALUE_SET_OBJECT (&val, function);
swfdec_as_object_set_variable_and_flags (...
2007 Sep 11
0
8 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c test/trace
...diff --git a/libswfdec/swfdec_as_function.c b/libswfdec/swfdec_as_function.c
index f89f56c..27a0121 100644
--- a/libswfdec/swfdec_as_function.c
+++ b/libswfdec/swfdec_as_function.c
@@ -166,6 +166,56 @@ swfdec_as_function_do_call (SwfdecAsCont
swfdec_as_context_run (context);
}
+static void
+swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *fun,
+ guint argc, SwfdecAsValue *argv, SwfdecAsValue *ret)
+{
+ SwfdecAsObject *thisp;
+
+ if (argc > 0) {
+ thisp = swfdec_as_value_to_object (cx, &argv[0]);
+ } else {
+ thisp = NULL;
+ }
+ if (thisp == NULL)
+ thisp = swfdec_as_objec...
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
...urn NULL;
- if (function->priv)
- swfdec_as_frame_set_security (frame, function->priv);
/* second check especially for super object */
if (thisp != NULL && frame->thisp == NULL) {
swfdec_as_frame_set_this (frame, swfdec_as_object_resolve (thisp));
@@ -248,7 +246,7 @@ swfdec_as_function_apply (SwfdecAsContext *cx, SwfdecAsObject *object,
}
void
-swfdec_as_function_init_context (SwfdecAsContext *context, guint version)
+swfdec_as_function_init_context (SwfdecAsContext *context)
{
SwfdecAsObject *function, *proto;
SwfdecAsValue val;
@@ -259,11 +257,7 @@ swfdec_as_function_init_...