Coverage Report

Created: 2023-04-29 07:39

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