stdlib: Fix __libc_message_impl iovec size

The ubsan triggers an array item access error with stdlib/tst-bz20544.
This commit is contained in:
Adhemerval Zanella 2025-04-22 14:01:05 -03:00
parent eadfcdb2b9
commit ea81e7d8c6
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ __libc_message_impl (const char *fmt, ...)
if (fd == -1)
fd = STDERR_FILENO;
struct iovec iov[LIBC_MESSAGE_MAX_ARGS * 2 - 1];
struct iovec iov[LIBC_MESSAGE_MAX_ARGS * 2 + 1];
int iovcnt = 0;
ssize_t total = 0;