- Notifications
You must be signed in to change notification settings - Fork832
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)
Description
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
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)