Apache HTTPD
Functions
testxml.c File Reference
#include "apr.h"
#include "apr_general.h"
#include "apr_xml.h"
#include "abts.h"
#include "testutil.h"

Go to the source code of this file.

Functions

static apr_status_t create_dummy_file_error (abts_case *tc, apr_pool_t *p, apr_file_t **fd)
 
static apr_status_t create_dummy_file (abts_case *tc, apr_pool_t *p, apr_file_t **fd)
 
static void dump_xml (abts_case *tc, apr_xml_elem *e, int level)
 
static void test_xml_parser (abts_case *tc, void *data)
 
static void test_billion_laughs (abts_case *tc, void *data)
 
static void test_CVE_2009_3720_alpha (abts_case *tc, void *data)
 
static void test_CVE_2009_3720_beta (abts_case *tc, void *data)
 
abts_suitetestxml (abts_suite *suite)
 

Function Documentation

◆ create_dummy_file()

static apr_status_t create_dummy_file ( abts_case tc,
apr_pool_t p,
apr_file_t **  fd 
)
static

< Create the file if not there

< Open the file and truncate to 0 length

< Delete the file after close

< Open the file for reading

< Open the file for writing

< Open should fail if APR_FOPEN_CREATE and file exists.

Definition at line 57 of file testxml.c.

◆ create_dummy_file_error()

static apr_status_t create_dummy_file_error ( abts_case tc,
apr_pool_t p,
apr_file_t **  fd 
)
static

< Create the file if not there

< Open the file and truncate to 0 length

< Delete the file after close

< Open the file for reading

< Open the file for writing

< Open should fail if APR_FOPEN_CREATE and file exists.

Definition at line 23 of file testxml.c.

◆ dump_xml()

static void dump_xml ( abts_case tc,
apr_xml_elem e,
int  level 
)
static

Definition at line 90 of file testxml.c.

◆ test_billion_laughs()

static void test_billion_laughs ( abts_case tc,
void *  data 
)
static

< Open the file for reading

Definition at line 151 of file testxml.c.

◆ test_CVE_2009_3720_alpha()

static void test_CVE_2009_3720_alpha ( abts_case tc,
void *  data 
)
static

Definition at line 169 of file testxml.c.

◆ test_CVE_2009_3720_beta()

static void test_CVE_2009_3720_beta ( abts_case tc,
void *  data 
)
static

Definition at line 182 of file testxml.c.

◆ test_xml_parser()

static void test_xml_parser ( abts_case tc,
void *  data 
)
static

Definition at line 120 of file testxml.c.

◆ testxml()

abts_suite * testxml ( abts_suite suite)

Definition at line 195 of file testxml.c.