Coverage Report

Created: 2026-06-07 07:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Meta/Lagom/Fuzzers/FuzzShellPosix.cpp
Line
Count
Source
1
/*
2
 * Copyright (c) 2020-2023, the SerenityOS developers.
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#include <AK/StringView.h>
8
#include <LibShell/PosixParser.h>
9
#include <LibShell/Shell.h>
10
#include <stddef.h>
11
#include <stdint.h>
12
13
extern "C" int LLVMFuzzerTestOneInput(uint8_t const* data, size_t size)
14
102k
{
15
102k
    AK::set_debug_enabled(false);
16
102k
    auto source = StringView(static_cast<unsigned char const*>(data), size);
17
102k
    Shell::Posix::Parser parser(source);
18
102k
    (void)parser.parse();
19
102k
    return 0;
20
102k
}