Coverage Report

Created: 2024-08-15 14:03

/src/libxslt/tests/fuzz/xpath.c
Line
Count
Source
1
/*
2
 * xpath.c: libFuzzer target for XPath expressions
3
 *
4
 * See Copyright for the status of this software.
5
 */
6
7
#include "fuzz.h"
8
9
int
10
10
LLVMFuzzerInitialize(int *argc_p, char ***argv_p) {
11
10
    return xsltFuzzXPathInit(argc_p, argv_p, NULL);
12
10
}
13
14
int
15
18.9k
LLVMFuzzerTestOneInput(const char *data, size_t size) {
16
18.9k
    xmlXPathObjectPtr xpathObj = xsltFuzzXPath(data, size);
17
18.9k
    xsltFuzzXPathFreeObject(xpathObj);
18
19
18.9k
    return 0;
20
18.9k
}