• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

systemd / systemd / 16545232189

27 Jul 2025 12:03AM UTC coverage: 72.173% (-0.03%) from 72.199%
16545232189

push

github

bluca
pcrlock: Return positive exit status

Follow-up for 89e83aada.

`is-supported` expects to return a positive exit status.
To achieve that, verb_make_policy() needs to return 0 on success.

Finishes the fix for #38019.

Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com>

5 of 5 new or added lines in 1 file covered. (100.0%)

836 existing lines in 51 files now uncovered.

302569 of 419228 relevant lines covered (72.17%)

731883.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/boot/fuzz-efi-string.c
1
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2

3
#include "alloc-util.h"
4
#include "efi-string.h"
5
#include "fuzz.h"
6

7
static char16_t *memdup_str16(const uint8_t *data, size_t size) {
×
8
        char16_t *ret = memdup(data, size);
×
9
        assert_se(ret);
×
10
        ret[size / sizeof(char16_t) - 1] = '\0';
×
11
        return ret;
×
12
}
13

14
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
×
15
        if (outside_size_range(size, sizeof(size_t), 64 * 1024))
×
16
                return 0;
×
17

18
        fuzz_setup_logging();
×
19

20
        size_t len, len2;
×
21
        memcpy(&len, data, sizeof(len));
×
22
        data += sizeof(len);
×
23
        size -= sizeof(len);
×
24

25
        len2 = size - len;
×
26
        if (len > size || len < sizeof(char16_t) || len2 < sizeof(char16_t))
×
27
                return 0;
28

29
        const char *tail8 = NULL;
×
30
        _cleanup_free_ char *str8 = ASSERT_SE_PTR(memdup_suffix0(data, size));
×
31
        DO_NOT_OPTIMIZE(parse_number8(str8, &(uint64_t){ 0 }, size % 2 == 0 ? NULL : &tail8));
×
32

33
        const char16_t *tail16 = NULL;
×
34
        _cleanup_free_ char16_t *str16 = ASSERT_SE_PTR(memdup_str16(data, size));
×
35
        DO_NOT_OPTIMIZE(parse_number16(str16, &(uint64_t){ 0 }, size % 2 == 0 ? NULL : &tail16));
×
36

37
        _cleanup_free_ char16_t
×
38
                *pattern = ASSERT_SE_PTR(memdup_str16(data, len)),
×
UNCOV
39
                *haystack = ASSERT_SE_PTR(memdup_str16(data + len, len2));
×
40
        DO_NOT_OPTIMIZE(efi_fnmatch(pattern, haystack));
×
41

UNCOV
42
        return 0;
×
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc