[FFmpeg-cvslog] avformat/rpl: Replace strcpy with av_strlcpy
Cameron Cawley
git at videolan.org
Wed Jul 10 13:59:03 EEST 2019
ffmpeg | branch: master | Cameron Cawley <ccawley2011 at gmail.com> | Wed Jul 10 10:27:02 2019 +0200| [94d45a13c7e893538ca59bf6605a772c13f64f95] | committer: Michael Niedermayer
avformat/rpl: Replace strcpy with av_strlcpy
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=94d45a13c7e893538ca59bf6605a772c13f64f95
---
libavformat/rpl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/rpl.c b/libavformat/rpl.c
index 17b45e3a67..6afd373810 100644
--- a/libavformat/rpl.c
+++ b/libavformat/rpl.c
@@ -200,7 +200,7 @@ static int rpl_read_header(AVFormatContext *s)
ast->codecpar->channels = read_line_and_int(pb, &error); // number of audio channels
error |= read_line(pb, line, sizeof(line));
ast->codecpar->bits_per_coded_sample = read_int(line, &endptr, &error); // audio bits per sample
- strcpy(audio_type, endptr);
+ av_strlcpy(audio_type, endptr, RPL_LINE_LENGTH);
// At least one sample uses 0 for ADPCM, which is really 4 bits
// per sample.
if (ast->codecpar->bits_per_coded_sample == 0)
More information about the ffmpeg-cvslog
mailing list