Coverage Report

Created: 2026-12-01 06:24

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/curl_fuzzer/fuzz_bufq.h
Line
Count
Source
1
/***************************************************************************
2
 *                                  _   _ ____  _
3
 *  Project                     ___| | | |  _ \| |
4
 *                             / __| | | | |_) | |
5
 *                            | (__| |_| |  _ <| |___
6
 *                             \___|\___/|_| \_\_____|
7
 *
8
 * Copyright (C) Max Dymond, <cmeister2@gmail.com>, et al.
9
 *
10
 * This software is licensed as described in the file COPYING, which
11
 * you should have received as part of this distribution. The terms
12
 * are also available at https://curl.se/docs/copyright.html.
13
 *
14
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
 * copies of the Software, and permit persons to whom the Software is
16
 * furnished to do so, under the terms of the COPYING file.
17
 *
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
 * KIND, either express or implied.
20
 *
21
 ***************************************************************************/
22
23
/**
24
 * Limits for fields
25
 */
26
10.1M
#define FUZZ_MAX_CHUNK_SIZE      (16 * 1024)
27
10.1M
#define FUZZ_MAX_CHUNKS_QTY      16
28
1.13k
#define FUZZ_MAX_MAX_SPARE       16
29
10.1M
#define FUZZ_MAX_RW_SIZE         (FUZZ_MAX_CHUNKS_QTY * FUZZ_MAX_CHUNK_SIZE)
30
31
/**
32
 * Operation identifiers
33
 */
34
6.57M
#define OP_TYPE_WRITE           0
35
428k
#define OP_TYPE_READ            1
36
644k
#define OP_TYPE_SKIP            2
37
3.33M
#define OP_TYPE_RESET           3
38
1.21M
#define OP_TYPE_PEEK            4
39
721k
#define OP_TYPE_PEEK_AT         5
40
731k
#define OP_TYPE_SIPN            6
41
693k
#define OP_TYPE_SLURP           7
42
371k
#define OP_TYPE_PASS            8
43
14.7M
#define OP_TYPE_MAX             8
44
45
/**
46
 * Helper macros
47
 */
48
49
#define FV_PRINTF(verbose, ...)                                               \
50
26.4M
        if(!!(verbose)) {                                                     \
51
0
          printf(__VA_ARGS__);                                                \
52
0
        }