26/06/2024 04:13, Jiale, SongX:
> From: Zhichao Zeng <zhichaox.z...@intel.com>
> > 
> > For calling memcpy when the source and destination addresses are the same,
> > there is a small probability that there will be a copy error issue in some
> > environments, resulting in a failure to connect.
> > 
> > This patch uses memmove instead of memcpy to avoid this issue.
> > 
> > Fixes: b80fe1805eee ("telemetry: introduce backward compatibility")
> > Cc: sta...@dpdk.org
> > 
> > Signed-off-by: Zhichao Zeng <zhichaox.z...@intel.com>
> > ---
> Tested-by: Song Jiale <songx.ji...@intel.com>

It would be cleaner to do a proper parsing before doing any copy (strlcpy, 
memcpy/memmove).

dirty code dirty fixed for now
Applied



Reply via email to