[PATCH v4 6/8] test: fix impossible format-truncation in cfgfiles

Burakov, Anatoly anatoly.burakov at intel.com
Fri Nov 21 13:09:54 CET 2025


On 11/20/2025 5:55 PM, Stephen Hemminger wrote:
> Although, it is not possible on Linux (which always uses /tmp)
> the compiler complains about possible snprintf() truncation.
> 
> Use existing code to make empty tmp file which puts the
> OS specific code in one spot and avoids any races if
> two tests are run at once.
> 
> Fixes: be22019a58c4 ("test: restore cfgfile tests")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---

Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>

-- 
Thanks,
Anatoly


More information about the dev mailing list