26/06/2024 04:13, Jiale, SongX:
> From: Zhichao Zeng <[email protected]>
> > 
> > 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: [email protected]
> > 
> > Signed-off-by: Zhichao Zeng <[email protected]>
> > ---
> Tested-by: Song Jiale <[email protected]>

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