On 8/7/26 17:05, Max Filippov wrote:
Fix new_argv allocation size to be `(argc + 2) * sizeof(char *)` bytes,
which matches the way it's used to store `argc + 2` pointers.

This fixes the test for me, which otherwise fails on xtensa with the
following message

   linux-sigrtminmax.c: 59: main: Assertion `execve(new_argv[0], new_argv, 
environ) == 0' failed.'.

Signed-off-by: Max Filippov <[email protected]>
---
  tests/tcg/multiarch/linux/linux-sigrtminmax.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Fixes: 6f58b090328 ("tests/tcg: Add SIGRTMIN/SIGRTMAX test")
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to