Apache HTTPD
Macros | Functions
misc_tests.c File Reference
#include <assert.h>
#include <string.h>
#include "expat_config.h"
#include "expat.h"
#include "internal.h"
#include "minicheck.h"
#include "memcheck.h"
#include "common.h"
#include "ascii.h"
#include "handlers.h"
#include "misc_tests.h"

Go to the source code of this file.

Macros

#define EXPAT_TESTS_UBSAN   0
 

Functions

static void test_misc_alloc_create_parser (void)
 
static void test_misc_alloc_create_parser_with_encoding (void)
 
static void test_misc_null_parser (void)
 
static void test_misc_error_string (void)
 
static int parse_version (const XML_LChar *version_text, XML_Expat_Version *version_struct)
 
static int versions_equal (const XML_Expat_Version *first, const XML_Expat_Version *second)
 
static void test_misc_version (void)
 
static void test_misc_features (void)
 
static void test_misc_attribute_leak (void)
 
static void test_misc_utf16le (void)
 
static void test_misc_stop_during_end_handler_issue_240_1 (void)
 
static void test_misc_stop_during_end_handler_issue_240_2 (void)
 
static void test_misc_deny_internal_entity_closing_doctype_issue_317 (void)
 
static void test_misc_tag_mismatch_reset_leak (void)
 
static void test_misc_create_external_entity_parser_with_null_context (void)
 
static void test_misc_general_entities_support (void)
 
static void XMLCALL resumable_stopping_character_handler (void *userData, const XML_Char *s, int len)
 
static void test_misc_char_handler_stop_without_leak (void)
 
static void test_misc_resumeparser_not_crashing (void)
 
static void test_misc_stopparser_rejects_unstarted_parser (void)
 
void make_miscellaneous_test_case (Suite *s)
 

Macro Definition Documentation

◆ EXPAT_TESTS_UBSAN

#define EXPAT_TESTS_UBSAN   0

Definition at line 117 of file misc_tests.c.

Function Documentation

◆ make_miscellaneous_test_case()

void make_miscellaneous_test_case ( Suite s)

Definition at line 523 of file misc_tests.c.

◆ parse_version()

static int parse_version ( const XML_LChar version_text,
XML_Expat_Version version_struct 
)
static

Definition at line 148 of file misc_tests.c.

◆ resumable_stopping_character_handler()

static void XMLCALL resumable_stopping_character_handler ( void *  userData,
const XML_Char s,
int  len 
)
static

Definition at line 479 of file misc_tests.c.

◆ test_misc_alloc_create_parser()

static void test_misc_alloc_create_parser ( void  )
static

Definition at line 63 of file misc_tests.c.

◆ test_misc_alloc_create_parser_with_encoding()

static void test_misc_alloc_create_parser_with_encoding ( void  )
static

Definition at line 83 of file misc_tests.c.

◆ test_misc_attribute_leak()

static void test_misc_attribute_leak ( void  )
static

Definition at line 248 of file misc_tests.c.

◆ test_misc_char_handler_stop_without_leak()

static void test_misc_char_handler_stop_without_leak ( void  )
static

Definition at line 488 of file misc_tests.c.

◆ test_misc_create_external_entity_parser_with_null_context()

static void test_misc_create_external_entity_parser_with_null_context ( void  )
static

Definition at line 417 of file misc_tests.c.

◆ test_misc_deny_internal_entity_closing_doctype_issue_317()

static void test_misc_deny_internal_entity_closing_doctype_issue_317 ( void  )
static

Definition at line 330 of file misc_tests.c.

◆ test_misc_error_string()

static void test_misc_error_string ( void  )
static

Definition at line 121 of file misc_tests.c.

◆ test_misc_features()

static void test_misc_features ( void  )
static

Definition at line 217 of file misc_tests.c.

◆ test_misc_general_entities_support()

static void test_misc_general_entities_support ( void  )
static

Definition at line 434 of file misc_tests.c.

◆ test_misc_null_parser()

static void test_misc_null_parser ( void  )
static

Definition at line 105 of file misc_tests.c.

◆ test_misc_resumeparser_not_crashing()

static void test_misc_resumeparser_not_crashing ( void  )
static

Definition at line 500 of file misc_tests.c.

◆ test_misc_stop_during_end_handler_issue_240_1()

static void test_misc_stop_during_end_handler_issue_240_1 ( void  )
static

Definition at line 288 of file misc_tests.c.

◆ test_misc_stop_during_end_handler_issue_240_2()

static void test_misc_stop_during_end_handler_issue_240_2 ( void  )
static

Definition at line 309 of file misc_tests.c.

◆ test_misc_stopparser_rejects_unstarted_parser()

static void test_misc_stopparser_rejects_unstarted_parser ( void  )
static

Definition at line 509 of file misc_tests.c.

◆ test_misc_tag_mismatch_reset_leak()

static void test_misc_tag_mismatch_reset_leak ( void  )
static

Definition at line 393 of file misc_tests.c.

◆ test_misc_utf16le()

static void test_misc_utf16le ( void  )
static

Definition at line 265 of file misc_tests.c.

◆ test_misc_version()

static void test_misc_version ( void  )
static

Definition at line 197 of file misc_tests.c.

◆ versions_equal()

static int versions_equal ( const XML_Expat_Version first,
const XML_Expat_Version second 
)
static

Definition at line 191 of file misc_tests.c.