Skip to content

build warnings in sandisk #3141

@dwsuse

Description

@dwsuse
[   23s] In function ‘memset’,
[   23s]     inlined from ‘sndk_get_serial_name’ at ../plugins/sandisk/sandisk-utils.c:813:2,
[   23s]     inlined from ‘sndk_vs_internal_fw_log’ at ../plugins/sandisk/sandisk-nvme.c:479:9:
[   23s] /usr/include/bits/string_fortified.h:59:10: warning: ‘__builtin___memset_chk’ writing 4096 bytes into a region of size 4092 overflows the destination [-Wstringop-overflow=]
[   23s]    59 |   return __builtin___memset_chk (__dest, __ch, __len,
[   23s]       |          ^
[   23s] In function ‘snprintf’,
[   23s]     inlined from ‘sndk_get_serial_name’ at ../plugins/sandisk/sandisk-utils.c:828:12,
[   23s]     inlined from ‘sndk_vs_internal_fw_log’ at ../plugins/sandisk/sandisk-nvme.c:479:9:
[   23s] /usr/include/bits/stdio2.h:68:10: warning: ‘__builtin___snprintf_chk’ specified bound 4096 exceeds destination size 4092 [-Wstringop-overflow=]
[   23s]    68 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
[   23s]       |          ^

Build fails on tumbleweed/factory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions