[FFmpeg-devel] [PATCH v2] avformat/hls: use av_strlcopy instead of strncpy

Leo Izen leo.izen at gmail.com
Mon Oct 30 15:52:06 EET 2023


On 10/30/23 03:51, Nicolas George wrote:
> Leo Izen (12023-10-29):
>> 			  But it will be nul-terminated in either case, so
>> there's no real difference between the old and new code, other than the
>> warning.
> 
> No real difference = you are not fixing the bug. There should be a
> difference: user data should not be silently truncated.
> 

There isn't really a bug here, just an extraneous compiler warning.

- Leo Izen (Traneptora)


More information about the ffmpeg-devel mailing list