GNOME Bugzilla – Bug 657032
rest_xml_parser_parse_from_data() should take -1
Last modified: 2012-06-18 07:37:54 UTC
rest_xml_parser_parse_from_data() takes goffset len, i.e. a signed parameter, but doesn't interpret a value of < 0 to read the entire, zero-terminated buffer. Would be nice.
Created attachment 216599 [details] [review] Accept -1 len in rest_xml_parser_parse_from_data This means that the passed in string is nul-terminated and that rest_xml_parser_parse_from_data should get its length with strlen.
Review of attachment 216599 [details] [review]: Looks good.
Attachment 216599 [details] pushed as 68d3302 - Accept -1 len in rest_xml_parser_parse_from_data