Coverage Report

Created: 2026-06-30 06:07

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libiec61850/fuzz/fuzz_pres_userdata.c
Line
Count
Source
1
#include <stdio.h>
2
#include <stdlib.h>
3
4
#include "iec61850_server.h"
5
#include "iso_presentation.h"
6
7
2.41k
int LLVMFuzzerTestOneInput(const char *data, size_t size) {
8
2.41k
    IsoPresentation pres;
9
10
2.41k
    ByteBuffer byteBuffer;
11
2.41k
    byteBuffer.buffer = (uint8_t*) data;
12
2.41k
    byteBuffer.maxSize = size;
13
2.41k
    byteBuffer.size = size;
14
15
2.41k
    int res = IsoPresentation_parseAcceptMessage(&pres, &byteBuffer);
16
17
2.41k
    return 0;
18
2.41k
}