Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | xml: Don't crash parsing empty XML string | Christophe Fergeau | 2017-10-18 | 1 | -0/+3 |
| | | | | | | | | | Calling rest_xml_parser_parse_from_data() with an empty string ("") currently causes a crash as xmlReaderForMemory() returns NULL in that case, and we then try to dereference this pointer without checking it's non-NULL. https://bugzilla.gnome.org/show_bug.cgi?id=789053 | ||||
* | Add more missing precondition checks | Timm Bäder | 2016-07-14 | 1 | -0/+1 |
| | |||||
* | rest-xml-parser: Ignore text content at the top-level of a document | Philip Withnall | 2015-04-14 | 1 | -3/+9 |
| | | | | | | | | This prevents a crash due to cur_node being NULL. Found by scan-build. https://bugzilla.gnome.org/show_bug.cgi?id=719550 | ||||
* | Don't dump XML parsing errors to stderr/stdout by default | Christophe Fergeau | 2015-03-16 | 1 | -0/+10 |
| | | | | These errors should only be shown if REST_DEBUG=xml-parser is set. | ||||
* | xml-parser: Add missing break in switch statement | Rob Bradford | 2014-09-19 | 1 | -0/+1 |
| | | | | | This would result in an inappropriate debug message appearing on valid text data. | ||||
* | Accept -1 len in rest_xml_parser_parse_from_data | Christophe Fergeau | 2012-06-17 | 1 | -1/+5 |
| | | | | | | | This means that the passed in string is nul-terminated and that rest_xml_parser_parse_from_data should get its length with strlen. https://bugzilla.gnome.org/show_bug.cgi?id=657032 | ||||
* | xml-node: API for manually constructing and outputting XML | Tomas Frydrych | 2011-02-10 | 1 | -212/+3 |
| | | | | | | | | | | | | | Split out RestXmlNode into separate source files and added simple API for manually constructing tree of RextXmlNodes and converting such a tree to a string: * xml_node_add_child() * xml_node_add_attribute() * xml_node_set_content() * xml_node_print() Includes xml test for make check | ||||
* | xml-parser: Remove unused variablelibrest-0.7.4 | Rob Bradford | 2010-09-13 | 1 | -1/+0 |
| | |||||
* | xml-parser: Remove unread 'res' variable | Rob Bradford | 2010-09-06 | 1 | -2/+2 |
| | | | | | We never read from this variable apart from in the loop so we can instead simply compare the result of the function. | ||||
* | xml-parser: Clear the stack in rest_xml_node_find | Rob Bradford | 2010-08-19 | 1 | -0/+2 |
| | |||||
* | xml-parser: Fix rest_xml_node_unref so that is correctly unrefs siblings | Rob Bradford | 2010-08-19 | 1 | -28/+28 |
| | |||||
* | proxy/proxy-call/xml-parser: Guard public function entry points | Rob Bradford | 2010-04-15 | 1 | -0/+5 |
| | | | | Fixes: http://bugzilla.meego.com/show_bug.cgi?id=273 | ||||
* | rest-xml-parser: Remove redundant GObject methods | Ross Burton | 2010-04-13 | 1 | -40/+0 |
| | |||||
* | rest-xml-parser: Remove pointless private struct | Ross Burton | 2010-04-13 | 1 | -35/+22 |
| | |||||
* | rest-xml-parser: Remove duplicate free for the reader in finalize | Rob Bradford | 2010-04-06 | 1 | -2/+0 |
| | |||||
* | rest-xml-parser: Free the textReader after we close it | Rob Bradford | 2010-03-24 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | This resolves the following leak: ==10948== 43,296 (672 direct, 42,624 indirect) bytes in 2 blocks are definitely lost in loss record 109 of 124 ==10948== at 0x4C2391E: malloc (vg_replace_malloc.c:207) ==10948== by 0x71460DA: xmlNewTextReader (in /usr/lib/libxml2.so.2.7.4) ==10948== by 0x71465A1: xmlReaderForMemory (in /usr/lib/libxml2.so.2.7.4) ==10948== by 0x6C4FF5D: rest_xml_parser_parse_from_data (rest-xml-parser.c:345) ==10948== by 0xB2211C4: node_from_call (twitter.c:142) ==10948== by 0xB221E5B: verify_cb (twitter.c:487) ==10948== by 0x6C4EF78: _call_async_finished_cb (rest-proxy-call.c:557) ==10948== by 0x5BC43EC: g_closure_invoke (gclosure.c:767) ==10948== by 0x5BD7CDA: signal_emit_unlocked_R (gsignal.c:3247) ==10948== by 0x5BD9081: g_signal_emit_valist (gsignal.c:2980) ==10948== by 0x5BD9552: g_signal_emit (gsignal.c:3037) ==10948== by 0x56E8FAE: soup_message_io_finished (soup-message-io.c:177) ==10948== | ||||
* | Make rest_xml_node_new private until it's useful | Ross Burton | 2009-05-15 | 1 | -1/+1 |
| | |||||
* | Document rest-xml-parser | Ross Burton | 2009-05-15 | 1 | -0/+53 |
| | |||||
* | Add license header. | Rob Bradford | 2009-01-15 | 1 | -0/+22 |
| | |||||
* | Make RestXmlNode ref counted, and add a boxed gtype | Ross Burton | 2008-12-18 | 1 | -31/+61 |
| | |||||
* | Free the siblings of a node when that node is freed. | Rob Bradford | 2008-11-18 | 1 | -10/+30 |
| | |||||
* | Intern tag names in the children hash | Ross Burton | 2008-11-17 | 1 | -5/+7 |
| | |||||
* | Use the same key when we add an existing node | Ross Burton | 2008-11-17 | 1 | -1/+1 |
| | |||||
* | Use static GQueues in rest_xml_parser_parse_from_data | Ross Burton | 2008-11-17 | 1 | -5/+4 |
| | |||||
* | Use static GQueues in rest_xml_node_find | Ross Burton | 2008-11-17 | 1 | -6/+4 |
| | |||||
* | Don't leak a GList in rest_xml_node_free | Ross Burton | 2008-11-17 | 1 | -1/+3 |
| | |||||
* | Reverse the list of siblings of children nodes so that the are in order. | Rob Bradford | 2008-09-18 | 1 | -1/+44 |
| | |||||
* | Use the XML element name instead of just the local name. A hack but it ↵ | Ross Burton | 2008-09-04 | 1 | -1/+1 |
| | | | | works for now with namespaced documents | ||||
* | Use goffset instead of gssize for payload lengths | Ross Burton | 2008-09-04 | 1 | -1/+1 |
| | |||||
* | Cast out the libxml2 string results. | Rob Bradford | 2008-09-03 | 1 | -6/+8 |
| | |||||
* | Make the hash table populate function void (Ross Burton) | Rob Bradford | 2008-09-03 | 1 | -4/+4 |
| | |||||
* | Switch the XML parser over to use the new debugging api. | Rob Bradford | 2008-09-01 | 1 | -12/+16 |
| | |||||
* | Add _find and _get_attrs to the parser API | Rob Bradford | 2008-09-01 | 1 | -0/+38 |
| | |||||
* | Add an XML parser that parses XML into a simple structure | Rob Bradford | 2008-08-22 | 1 | -0/+250 |