Re: [PATCH] util: avoid overflow in hextable buffer

2025-01-20 Thread Pavel Hrdina
On Mon, Jan 20, 2025 at 10:09:24AM +, Daniel P. Berrangé wrote: > The assigned string is 17 chars long once the trailing nul is taken > into account. This triggers a warning with GCC 15 > > src/util/virsystemd.c: In function ‘virSystemdEscapeName’: > src/util/virsystemd.c:59:38: error: initi

[PATCH] util: avoid overflow in hextable buffer

2025-01-20 Thread Daniel P . Berrangé
The assigned string is 17 chars long once the trailing nul is taken into account. This triggers a warning with GCC 15 src/util/virsystemd.c: In function ‘virSystemdEscapeName’: src/util/virsystemd.c:59:38: error: initializer-string for array of ‘char’ is too long [-Werror=unterminated-string-in