Coverage Report

Created: 2024-02-25 06:34

/src/kamailio/misc/fuzz/fuzz_uri.c
Line
Count
Source
1
2
#include "../config.h"
3
#include "../parser/parse_uri.c"
4
5
int
6
3.57k
LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
7
3.57k
    struct sip_uri uri;
8
3.57k
    if(size >= BUF_SIZE) {
9
        /* test with larger message than core accepts, but not indefinitely large */
10
5
        return 0;
11
5
    }
12
3.56k
    parse_uri(data, size, &uri);
13
3.56k
    return 0;
14
3.57k
}