Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute #2910

Open
Labels
2.6This issue affects the HAProxy 2.6 stable branch.2.8This issue affects the HAProxy 2.8 stable branch.3.0This issue affects the HAProxy 3.0 stable branch.3.1This issue affects the HAProxy 3.1 stable branch.status: fixedThis issue is a now-fixed bug.type: bugThis issue describes a bug.type: code-reportThis issue describes a code report (like valgrind or coverity)
@chipitsine

Description

@chipitsine

Tool Name and Version

gcc 15 on fedora rawhide

Code Report

src/log.c:181:33: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (17 chars into 16 available) [-Werror=unterminated-string-initialization]  181 | const char sess_term_cond[16] = "-LcCsSPRIDKUIIII"; /* normal, Local, CliTo, CliErr, SrvTo, SrvErr, PxErr, Resource, Internal, Down, Killed, Up, -- */      |                                 ^~~~~~~~~~~~~~~~~~src/log.c:182:33: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (9 chars into 8 available) [-Werror=unterminated-string-initialization]  182 | const char sess_fin_state[8]  = "-RCHDLQT";     /* cliRequest, srvConnect, srvHeader, Data, Last, Queue, Tarpit */      |                                 ^~~~~~~~~~src/log.c:3477:33: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (9 chars into 8 available) [-Werror=unterminated-string-initialization] 3477 | const char sess_cookie[8]     = "NIDVEOU7";     /* No cookie, Invalid cookie, cookie for a Down server, Valid cookie, Expired cookie, Old cookie, Unused, unknown */      |                                 ^~~~~~~~~~src/log.c:3478:33: error: initializer-string for array of 'char' truncates NUL terminator but destination lacks 'nonstring' attribute (9 chars into 8 available) [-Werror=unterminated-string-initialization] 3478 | const char sess_set_cookie[8] = "NPDIRU67";     /* No set-cookie, Set-cookie found and left unchanged (passive),      |                                 ^~~~~~~~~~

Additional Information

No response

Output ofhaproxy -vv

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.6This issue affects the HAProxy 2.6 stable branch.2.8This issue affects the HAProxy 2.8 stable branch.3.0This issue affects the HAProxy 3.0 stable branch.3.1This issue affects the HAProxy 3.1 stable branch.status: fixedThis issue is a now-fixed bug.type: bugThis issue describes a bug.type: code-reportThis issue describes a code report (like valgrind or coverity)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp