+3
−1
Loading
According to vnsprintf man page, `ap` parameter is undefined after this call returns. This means it is invalid to then pass it to vasprintf() if vnsprintf() returns something larger than MAX_TMPBUF. Newer ASAN catches this problem immediately. Adding the va_copy() fixes the problem. Fixes issue #3507. Signed-off-by:Jim Harris <jim.harris@samsung.com> Change-Id: I930b7eb2bd454c3834d988162bf0ef886e2b47de Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24673 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@nvidia.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Community-CI: Mellanox Build Bot