Merge pull request #9529 from jaimeMF/backport-gcc-14-calloc-fix

[Backport 2.28] tests: fix calloc() argument list (gcc-14 fix)