Coverage Report

Created: 2024-07-27 14:18

/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
2.46k
LLVMFuzzerInitialize(int *argc_p, char ***argv_p) {
11
2.46k
    return xsltFuzzXPathInit(argc_p, argv_p, NULL);
12
2.46k
}
13
14
int
15
3.91M
LLVMFuzzerTestOneInput(const char *data, size_t size) {
16
3.91M
    xmlXPathObjectPtr xpathObj = xsltFuzzXPath(data, size);
17
3.91M
    xsltFuzzXPathFreeObject(xpathObj);
18
19
3.91M
    return 0;
20
3.91M
}