|
| static void | basic_setup (void) |
| |
| static void | test_nul_byte (void) |
| |
| static void | test_u0000_char (void) |
| |
| static void | test_siphash_self (void) |
| |
| static void | test_siphash_spec (void) |
| |
| static void | test_bom_utf8 (void) |
| |
| static void | test_bom_utf16_be (void) |
| |
| static void | test_bom_utf16_le (void) |
| |
| static void | test_nobom_utf16_le (void) |
| |
| static void | test_hash_collision (void) |
| |
| static void | test_danish_latin1 (void) |
| |
| static void | test_french_charref_hexidecimal (void) |
| |
| static void | test_french_charref_decimal (void) |
| |
| static void | test_french_latin1 (void) |
| |
| static void | test_french_utf8 (void) |
| |
| static void | test_utf8_false_rejection (void) |
| |
| static void | test_illegal_utf8 (void) |
| |
| static void | test_utf8_auto_align (void) |
| |
| static void | test_utf16 (void) |
| |
| static void | test_utf16_le_epilog_newline (void) |
| |
| static void | test_not_utf16 (void) |
| |
| static void | test_bad_encoding (void) |
| |
| static void | test_latin1_umlauts (void) |
| |
| static void | test_long_utf8_character (void) |
| |
| static void | test_long_latin1_attribute (void) |
| |
| static void | test_long_ascii_attribute (void) |
| |
| static void | test_line_number_after_parse (void) |
| |
| static void | test_column_number_after_parse (void) |
| |
| static void | test_line_and_column_numbers_inside_handlers (void) |
| |
| static void | test_line_number_after_error (void) |
| |
| static void | test_column_number_after_error (void) |
| |
| static void | test_really_long_lines (void) |
| |
| static void | test_really_long_encoded_lines (void) |
| |
| static void | test_end_element_events (void) |
| |
| static int | is_whitespace_normalized (const XML_Char *s, int is_cdata) |
| |
| static void | test_helper_is_whitespace_normalized (void) |
| |
| static void XMLCALL | check_attr_contains_normalized_whitespace (void *userData, const XML_Char *name, const XML_Char **atts) |
| |
| static void | test_attr_whitespace_normalization (void) |
| |
| static void | test_xmldecl_misplaced (void) |
| |
| static void | test_xmldecl_invalid (void) |
| |
| static void | test_xmldecl_missing_attr (void) |
| |
| static void | test_xmldecl_missing_value (void) |
| |
| static void | test_unknown_encoding_internal_entity (void) |
| |
| static void | test_unrecognised_encoding_internal_entity (void) |
| |
| static void | test_ext_entity_set_encoding (void) |
| |
| static void | test_ext_entity_no_handler (void) |
| |
| static void | test_ext_entity_set_bom (void) |
| |
| static void | test_ext_entity_bad_encoding (void) |
| |
| static void | test_ext_entity_bad_encoding_2 (void) |
| |
| static void | test_wfc_undeclared_entity_unread_external_subset (void) |
| |
| static void | test_wfc_undeclared_entity_no_external_subset (void) |
| |
| static void | test_wfc_undeclared_entity_standalone (void) |
| |
| static void | test_wfc_undeclared_entity_with_external_subset_standalone (void) |
| |
| static void | test_entity_with_external_subset_unless_standalone (void) |
| |
| static void | test_wfc_undeclared_entity_with_external_subset (void) |
| |
| static void | test_not_standalone_handler_reject (void) |
| |
| static void | test_not_standalone_handler_accept (void) |
| |
| static void | test_wfc_no_recursive_entity_refs (void) |
| |
| static void | test_recursive_external_parameter_entity_2 (void) |
| |
| static void | test_ext_entity_invalid_parse (void) |
| |
| static void | test_dtd_default_handling (void) |
| |
| static void | test_dtd_attr_handling (void) |
| |
| static void | test_empty_ns_without_namespaces (void) |
| |
| static void | test_ns_in_attribute_default_without_namespaces (void) |
| |
| static void | test_stop_parser_between_char_data_calls (void) |
| |
| static void | test_suspend_parser_between_char_data_calls (void) |
| |
| static void | test_repeated_stop_parser_between_char_data_calls (void) |
| |
| static void | test_good_cdata_ascii (void) |
| |
| static void | test_good_cdata_utf16 (void) |
| |
| static void | test_good_cdata_utf16_le (void) |
| |
| static void | test_long_cdata_utf16 (void) |
| |
| static void | test_multichar_cdata_utf16 (void) |
| |
| static void | test_utf16_bad_surrogate_pair (void) |
| |
| static void | test_bad_cdata (void) |
| |
| static void | test_bad_cdata_utf16 (void) |
| |
| static void | test_stop_parser_between_cdata_calls (void) |
| |
| static void | test_suspend_parser_between_cdata_calls (void) |
| |
| static void | test_memory_allocation (void) |
| |
| static void | test_default_current (void) |
| |
| static void | test_dtd_elements (void) |
| |
| static void XMLCALL | element_decl_check_model (void *userData, const XML_Char *name, XML_Content *model) |
| |
| static void | test_dtd_elements_nesting (void) |
| |
| static void | test_set_foreign_dtd (void) |
| |
| static void | test_foreign_dtd_not_standalone (void) |
| |
| static void | test_invalid_foreign_dtd (void) |
| |
| static void | test_foreign_dtd_with_doctype (void) |
| |
| static void | test_foreign_dtd_without_external_subset (void) |
| |
| static void | test_empty_foreign_dtd (void) |
| |
| static void | test_set_base (void) |
| |
| static void | test_attributes (void) |
| |
| static void | test_reset_in_entity (void) |
| |
| static void | test_resume_invalid_parse (void) |
| |
| static void | test_resume_resuspended (void) |
| |
| static void | test_cdata_default (void) |
| |
| static void | test_subordinate_reset (void) |
| |
| static void | test_subordinate_suspend (void) |
| |
| static void | test_subordinate_xdecl_suspend (void) |
| |
| static void | test_subordinate_xdecl_abort (void) |
| |
| static void | test_ext_entity_invalid_suspended_parse (void) |
| |
| static void | test_explicit_encoding (void) |
| |
| static void | test_trailing_cr (void) |
| |
| static void | test_ext_entity_trailing_cr (void) |
| |
| static void | test_trailing_rsqb (void) |
| |
| static void | test_ext_entity_trailing_rsqb (void) |
| |
| static void | test_ext_entity_good_cdata (void) |
| |
| static void | test_user_parameters (void) |
| |
| static void | test_ext_entity_ref_parameter (void) |
| |
| static void | test_empty_parse (void) |
| |
| static void | test_negative_len_parse (void) |
| |
| static void | test_negative_len_parse_buffer (void) |
| |
| static enum XML_Status | get_feature (enum XML_FeatureEnum feature_id, long *presult) |
| |
| static void | test_get_buffer_1 (void) |
| |
| static void | test_get_buffer_2 (void) |
| |
| static void | test_buffer_can_grow_to_max (void) |
| |
| static void | test_getbuffer_allocates_on_zero_len (void) |
| |
| static void | test_byte_info_at_end (void) |
| |
| static void | test_byte_info_at_error (void) |
| |
| static void | test_byte_info_at_cdata (void) |
| |
| static void | test_predefined_entities (void) |
| |
| static void | test_invalid_tag_in_dtd (void) |
| |
| static void | test_not_predefined_entities (void) |
| |
| static void | test_ignore_section (void) |
| |
| static void | test_ignore_section_utf16 (void) |
| |
| static void | test_ignore_section_utf16_be (void) |
| |
| static void | test_bad_ignore_section (void) |
| |
| static int XMLCALL | external_bom_checker (XML_Parser parser, const XML_Char *context, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId) |
| |
| static void | test_external_bom_consumed (void) |
| |
| static void | test_external_entity_values (void) |
| |
| static void | test_ext_entity_not_standalone (void) |
| |
| static void | test_ext_entity_value_abort (void) |
| |
| static void | test_bad_public_doctype (void) |
| |
| static void | test_attribute_enum_value (void) |
| |
| static void | test_predefined_entity_redefinition (void) |
| |
| static void | test_dtd_stop_processing (void) |
| |
| static void | test_public_notation_no_sysid (void) |
| |
| static void | test_nested_groups (void) |
| |
| static void | test_group_choice (void) |
| |
| static void | test_standalone_parameter_entity (void) |
| |
| static void | test_skipped_parameter_entity (void) |
| |
| static void | test_recursive_external_parameter_entity (void) |
| |
| static void | test_undefined_ext_entity_in_external_dtd (void) |
| |
| static void | test_suspend_xdecl (void) |
| |
| static void | test_abort_epilog (void) |
| |
| static void | test_abort_epilog_2 (void) |
| |
| static void | test_suspend_epilog (void) |
| |
| static void | test_suspend_in_sole_empty_tag (void) |
| |
| static void | test_unfinished_epilog (void) |
| |
| static void | test_partial_char_in_epilog (void) |
| |
| static void | test_suspend_resume_internal_entity (void) |
| |
| static void | test_suspend_resume_internal_entity_issue_629 (void) |
| |
| static void | test_resume_entity_with_syntax_error (void) |
| |
| static void | test_suspend_resume_parameter_entity (void) |
| |
| static void | test_restart_on_error (void) |
| |
| static void | test_reject_lt_in_attribute_value (void) |
| |
| static void | test_reject_unfinished_param_in_att_value (void) |
| |
| static void | test_trailing_cr_in_att_value (void) |
| |
| static void | test_standalone_internal_entity (void) |
| |
| static void | test_skipped_external_entity (void) |
| |
| static void | test_skipped_null_loaded_ext_entity (void) |
| |
| static void | test_skipped_unloaded_ext_entity (void) |
| |
| static void | test_param_entity_with_trailing_cr (void) |
| |
| static void | test_invalid_character_entity (void) |
| |
| static void | test_invalid_character_entity_2 (void) |
| |
| static void | test_invalid_character_entity_3 (void) |
| |
| static void | test_invalid_character_entity_4 (void) |
| |
| static void | test_pi_handled_in_default (void) |
| |
| static void | test_comment_handled_in_default (void) |
| |
| static void | test_pi_yml (void) |
| |
| static void | test_pi_xnl (void) |
| |
| static void | test_pi_xmm (void) |
| |
| static void | test_utf16_pi (void) |
| |
| static void | test_utf16_be_pi (void) |
| |
| static void | test_utf16_be_comment (void) |
| |
| static void | test_utf16_le_comment (void) |
| |
| static void | test_missing_encoding_conversion_fn (void) |
| |
| static void | test_failing_encoding_conversion_fn (void) |
| |
| static void | test_unknown_encoding_success (void) |
| |
| static void | test_unknown_encoding_bad_name (void) |
| |
| static void | test_unknown_encoding_bad_name_2 (void) |
| |
| static void | test_unknown_encoding_long_name_1 (void) |
| |
| static void | test_unknown_encoding_long_name_2 (void) |
| |
| static void | test_invalid_unknown_encoding (void) |
| |
| static void | test_unknown_ascii_encoding_ok (void) |
| |
| static void | test_unknown_ascii_encoding_fail (void) |
| |
| static void | test_unknown_encoding_invalid_length (void) |
| |
| static void | test_unknown_encoding_invalid_topbit (void) |
| |
| static void | test_unknown_encoding_invalid_surrogate (void) |
| |
| static void | test_unknown_encoding_invalid_high (void) |
| |
| static void | test_unknown_encoding_invalid_attr_value (void) |
| |
| static void | test_ext_entity_latin1_utf16le_bom (void) |
| |
| static void | test_ext_entity_latin1_utf16be_bom (void) |
| |
| static void | test_ext_entity_latin1_utf16le_bom2 (void) |
| |
| static void | test_ext_entity_latin1_utf16be_bom2 (void) |
| |
| static void | test_ext_entity_utf16_be (void) |
| |
| static void | test_ext_entity_utf16_le (void) |
| |
| static void | test_ext_entity_utf16_unknown (void) |
| |
| static void | test_ext_entity_utf8_non_bom (void) |
| |
| static void | test_utf8_in_cdata_section (void) |
| |
| static void | test_utf8_in_cdata_section_2 (void) |
| |
| static void | test_utf8_in_start_tags (void) |
| |
| static void | test_trailing_spaces_in_elements (void) |
| |
| static void | test_utf16_attribute (void) |
| |
| static void | test_utf16_second_attr (void) |
| |
| static void | test_attr_after_solidus (void) |
| |
| static void | test_utf16_pe (void) |
| |
| static void | test_bad_attr_desc_keyword (void) |
| |
| static void | test_bad_attr_desc_keyword_utf16 (void) |
| |
| static void | test_bad_doctype (void) |
| |
| static void | test_bad_doctype_utf8 (void) |
| |
| static void | test_bad_doctype_utf16 (void) |
| |
| static void | test_bad_doctype_plus (void) |
| |
| static void | test_bad_doctype_star (void) |
| |
| static void | test_bad_doctype_query (void) |
| |
| static void | test_unknown_encoding_bad_ignore (void) |
| |
| static void | test_entity_in_utf16_be_attr (void) |
| |
| static void | test_entity_in_utf16_le_attr (void) |
| |
| static void | test_entity_public_utf16_be (void) |
| |
| static void | test_entity_public_utf16_le (void) |
| |
| static void | test_short_doctype (void) |
| |
| static void | test_short_doctype_2 (void) |
| |
| static void | test_short_doctype_3 (void) |
| |
| static void | test_long_doctype (void) |
| |
| static void | test_bad_entity (void) |
| |
| static void | test_bad_entity_2 (void) |
| |
| static void | test_bad_entity_3 (void) |
| |
| static void | test_bad_entity_4 (void) |
| |
| static void | test_bad_notation (void) |
| |
| static void | test_default_doctype_handler (void) |
| |
| static void | test_empty_element_abort (void) |
| |
| static void | test_pool_integrity_with_unfinished_attr (void) |
| |
| static void | test_nested_entity_suspend (void) |
| |
| static void | test_big_tokens_scale_linearly (void) |
| |
| static void | test_set_reparse_deferral (void) |
| |
| static void | element_decl_counter (void *userData, const XML_Char *name, XML_Content *model) |
| |
| static int | external_inherited_parser (XML_Parser p, const XML_Char *context, const XML_Char *base, const XML_Char *systemId, const XML_Char *publicId) |
| |
| static void | test_reparse_deferral_is_inherited (void) |
| |
| static void | test_set_reparse_deferral_on_null_parser (void) |
| |
| static void | test_set_reparse_deferral_on_the_fly (void) |
| |
| static void | test_set_bad_reparse_option (void) |
| |
| static void * | counting_realloc (void *ptr, size_t size) |
| |
| static void * | counting_malloc (size_t size) |
| |
| static void | test_bypass_heuristic_when_close_to_bufsize (void) |
| |
| static void | test_varying_buffer_fills (void) |
| |
| void | make_basic_test_case (Suite *s) |
| |