search for: swfdecxmlnod

Displaying 13 results from an estimated 13 matches for "swfdecxmlnod".

Did you mean: swfdecxmlnode
2008 Jan 19
0
11 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_sprite_movie_as.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/image test/swfdec_test.c test/swfdec_test_image.c test/trace
...ype (SwfdecAsContext *cx, SwfdecAsObject *object, if (SWFDEC_AS_VALUE_IS_UNDEFINED (&argv[0])) return; - SWFDEC_XML (object)->contentType = argv[0]; + SWFDEC_XML (object)->content_type = argv[0]; } static void @@ -380,10 +382,10 @@ swfdec_xml_parse_xmlDecl (SwfdecXml *xml, SwfdecXmlNode *node, const char *p) end += strlen ("?>"); - string = g_string_new ((xml->xmlDecl != NULL ? xml->xmlDecl : "")); + string = g_string_new ((xml->xml_decl != NULL ? xml->xml_decl : "")); string = g_string_append_len (string, p, end - p); - x...
2007 Nov 02
0
5 commits - libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
...ampila at iki.fi> Date: Fri Nov 2 12:09:01 2007 +0200 Bunch OOM fixes to XML code diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c index 37174bc..b64b16e 100644 --- a/libswfdec/swfdec_xml.c +++ b/libswfdec/swfdec_xml.c @@ -563,6 +563,8 @@ swfdec_xml_parse_tag (SwfdecXml *xml, SwfdecXmlNode **node, const char *p) child = swfdec_xml_node_new_no_properties ( SWFDEC_AS_OBJECT (*node)->context, SWFDEC_XML_NODE_ELEMENT, name); g_free (name); + if (child == NULL) + return strchr (p, '\0'); } if (close) { @@ -643,6 +645,8 @@ swfdec_xml_parse_text (Swfd...
2007 Nov 02
0
2 commits - libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c
...Fri Nov 2 12:31:13 2007 +0200 Fix couple of errors I just made, they broke XML support diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c index 0613e41..5c52126 100644 --- a/libswfdec/swfdec_xml.c +++ b/libswfdec/swfdec_xml.c @@ -561,8 +561,9 @@ swfdec_xml_parse_tag (SwfdecXml *xml, SwfdecXmlNode **node, const char *p) // create the new element if (!close) { child = swfdec_xml_node_new_no_properties ( - SWFDEC_AS_OBJECT (*node)->context, SWFDEC_XML_NODE_ELEMENT, name); - g_free (name); + SWFDEC_AS_OBJECT (*node)->context, SWFDEC_XML_NODE_ELEMENT, + swfdec_as_context_giv...
2007 Oct 14
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h
...Context *cx, const char *orginal) { - return swfdec_xml_unescape_len (orginal, strlen (orginal)); + return swfdec_xml_unescape_len (cx, orginal, strlen (orginal)); } // this is never declared, only available as ASnative (100, 5) @@ -481,7 +482,7 @@ swfdec_xml_parse_attribute (SwfdecXml *xml, SwfdecXmlNode *node, const char *p) text = g_strndup (p, end - p); name = swfdec_as_context_give_string (SWFDEC_AS_OBJECT (node)->context, - swfdec_xml_unescape (text)); + swfdec_xml_unescape (SWFDEC_AS_OBJECT (xml)->context, text)); g_free (text); p = end + strspn (end, " \...
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
...t *context, const char *text, return FALSE; } - host_lower = g_ascii_strdown (host, -1); + if (host != NULL) { + host_lower = g_ascii_strdown (host, -1); + } else { + host_lower = NULL; + } for (i = 0; i < swfdec_xml_node_num_children (SWFDEC_XML_NODE (xml)); i++) { SwfdecXmlNode *node_cdp = @@ -90,6 +93,8 @@ swfdec_policy_loader_check (SwfdecAsContext *context, const char *text, for (j = 0; j < swfdec_xml_node_num_children (node_cdp); j++) { SwfdecXmlNode *node_aaf = swfdec_xml_node_get_child (node_cdp, j); const char *value; + GPatternSpec *pat...
2007 Oct 25
0
18 commits - libswfdec/swfdec_player_internal.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_format.c libswfdec/swfdec_text_format.h libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c libswfdec/swfdec_xml_node.h test/trace
...007 +0300 Don't init XMLNode's properties when create XMLNodes from parsed XML diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c index ea2f287..f447e46 100644 --- a/libswfdec/swfdec_xml.c +++ b/libswfdec/swfdec_xml.c @@ -560,8 +560,8 @@ swfdec_xml_parse_tag (SwfdecXml *xml, SwfdecXmlNode **node, const char *p) // create the new element if (!close) { - child = swfdec_xml_node_new (SWFDEC_AS_OBJECT (*node)->context, - SWFDEC_XML_NODE_ELEMENT, name); + child = swfdec_xml_node_new_no_properties ( + SWFDEC_AS_OBJECT (*node)->context, SWFDEC_XML_NODE_ELEMENT, name);...
2007 Oct 11
0
2 commits - libswfdec/swfdec_text_format.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml.h
...ct)->status = G_MININT32; + else + SWFDEC_XML (object)->status = (int) d; } static const char * diff --git a/libswfdec/swfdec_xml.h b/libswfdec/swfdec_xml.h index c06562d..e0e8cc8 100644 --- a/libswfdec/swfdec_xml.h +++ b/libswfdec/swfdec_xml.h @@ -55,7 +55,7 @@ struct _SwfdecXml { SwfdecXmlNode xml_node; gboolean ignoreWhite; - SwfdecXmlParseStatus status; + int status; const char *xmlDecl; const char *docTypeDecl; diff-tree 90c5b254605f93fe97116e5032627075a1013957 (from cd10b0bf08549c0002ff4dfc996736aa773eca68) Author: Benjamin Otte <otte at gnome.org> Date:...
2007 Nov 15
0
6 commits - libswfdec/compiler.c libswfdec/swfdec_as_date.h libswfdec/swfdec_text_format.c libswfdec/swfdec_xml.c test/dump.c test/render.c test/render-fast.c
...e at gnome.org> Date: Thu Nov 15 13:40:36 2007 +0100 use gsize instead of size_t diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c index 9edf4d0..0f30d7e 100644 --- a/libswfdec/swfdec_xml.c +++ b/libswfdec/swfdec_xml.c @@ -639,7 +639,7 @@ swfdec_xml_parse_text (SwfdecXml *xml, SwfdecXmlNode *node, if (end == NULL) end = strchr (p, '\0'); - if (!xml->ignoreWhite || strspn (p, " \t\r\n") < (size_t)(end - p)) + if (!xml->ignoreWhite || strspn (p, " \t\r\n") < (gsize)(end - p)) { text = g_strndup (p, end - p); unescaped = s...
2007 Dec 20
0
13 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_xml.c libswfdec/swfdec_xml_node.c test/trace
...:53 2007 +0200 Don't allow creation of loops in XMLNode when version is 8 diff --git a/libswfdec/swfdec_xml_node.c b/libswfdec/swfdec_xml_node.c index 99d7f3e..5c74870 100644 --- a/libswfdec/swfdec_xml_node.c +++ b/libswfdec/swfdec_xml_node.c @@ -742,6 +742,15 @@ swfdec_xml_node_insertAt (SwfdecXmlNode *node, SwfdecXmlNode *child, gint32 ind) g_assert (SWFDEC_IS_VALID_XML_NODE (child)); g_assert (ind >= 0); + if (SWFDEC_AS_OBJECT (node)->context->version >= 8) { + SwfdecXmlNode *parent = node; + while (parent != NULL) { + if (parent == child) + return; + pare...
2007 Nov 30
0
36 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_initialize.as libswfdec/swfdec_as_initialize.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_flash_security.c
...->allow_url); klass->allow_url (guard, url, callback, user_data); } diff --git a/libswfdec/swfdec_xml_node.c b/libswfdec/swfdec_xml_node.c index ead198b..99d7f3e 100644 --- a/libswfdec/swfdec_xml_node.c +++ b/libswfdec/swfdec_xml_node.c @@ -150,6 +150,9 @@ swfdec_xml_node_get_attribute (SwfdecXmlNode *node, const char *name) { SwfdecAsValue val; + g_return_val_if_fail (SWFDEC_IS_VALID_XML_NODE (node), NULL); + g_return_val_if_fail (name != NULL, NULL); + if (swfdec_as_object_get_variable (node->attributes, name, &val)) { return swfdec_as_value_to_string (SWFDEC_AS_OBJECT...
2007 Dec 23
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_character.c libswfdec/swfdec_external_interface.c libswfdec/swfdec.h libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...x, const char *orginal) { - return swfdec_xml_unescape_len (cx, orginal, strlen (orginal)); + return swfdec_xml_unescape_len (cx, orginal, strlen (orginal), TRUE); } // this is never declared, only available as ASnative (100, 5) @@ -502,7 +506,7 @@ swfdec_xml_parse_attribute (SwfdecXml *xml, SwfdecXmlNode *node, const char *p) } unescaped = swfdec_xml_unescape_len (SWFDEC_AS_OBJECT (xml)->context, p + 1, - end - (p + 1)); + end - (p + 1), TRUE); value = swfdec_as_context_give_string (SWFDEC_AS_OBJECT (node)->context, unescaped); SWFDEC_AS_VALUE_SET_STRING (&...
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
...XML object for crossdomain policy"); + return; + } + + if (SWFDEC_XML_NODE (xml)->type != SWFDEC_XML_NODE_ELEMENT) { + SWFDEC_LOG ("empty crossdomain policy file"); + return; + } + + for (i = 0; i < swfdec_xml_node_num_children (SWFDEC_XML_NODE (xml)); i++) { + SwfdecXmlNode *node_cdp = + swfdec_xml_node_get_child (SWFDEC_XML_NODE (xml), i); + + if (node_cdp->type != SWFDEC_XML_NODE_ELEMENT) + continue; + + if (g_ascii_strcasecmp (node_cdp->name, "cross-domain-policy") != 0) + continue; + + for (j = 0; j < swfdec_xml_node_num...
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
...c Merge branch 'master' into policy Merge branch 'master' of ssh://medar at git.freedesktop.org/git/swfdec/swfdec Merge branch 'master' into policy Forgot to initialize FlashSecurity's player at one point Add some functions for SwfdecXML and SwfdecXMLNode Implement the parsing of crossdomain.xml files Support matching patterns when checking crossdomain.xml Merge branch 'master' of ssh://medar at git.freedesktop.org/git/swfdec/swfdec Merge branch 'master' into policy Remove player variable from SwfdecRes...