Re: [FFmpeg-devel] [PATCH]lavf/mlv: Fix an snprintf() truncation

2017-05-10 Thread Clément Bœsch
On Wed, May 10, 2017 at 09:49:50AM +0200, Carl Eugen Hoyos wrote: > 2017-05-09 16:40 GMT+02:00 Clément Bœsch : > > On Tue, May 09, 2017 at 03:32:36PM +0200, Carl Eugen Hoyos wrote: > >> Hi! > >> > >> Attached patch fixes a warning when compiling with gcc 7: > >> libavformat/mlvdec.c: In function ‘r

Re: [FFmpeg-devel] [PATCH]lavf/mlv: Fix an snprintf() truncation

2017-05-10 Thread Carl Eugen Hoyos
2017-05-09 16:40 GMT+02:00 Clément Bœsch : > On Tue, May 09, 2017 at 03:32:36PM +0200, Carl Eugen Hoyos wrote: >> Hi! >> >> Attached patch fixes a warning when compiling with gcc 7: >> libavformat/mlvdec.c: In function ‘read_header’: >> libavformat/mlvdec.c:353:58: warning: ‘snprintf’ output may be

Re: [FFmpeg-devel] [PATCH]lavf/mlv: Fix an snprintf() truncation

2017-05-09 Thread Clément Bœsch
On Tue, May 09, 2017 at 03:32:36PM +0200, Carl Eugen Hoyos wrote: > Hi! > > Attached patch fixes a warning when compiling with gcc 7: > libavformat/mlvdec.c: In function ‘read_header’: > libavformat/mlvdec.c:353:58: warning: ‘snprintf’ output may be truncated > before the last format character [-

[FFmpeg-devel] [PATCH]lavf/mlv: Fix an snprintf() truncation

2017-05-09 Thread Carl Eugen Hoyos
Hi! Attached patch fixes a warning when compiling with gcc 7: libavformat/mlvdec.c: In function ‘read_header’: libavformat/mlvdec.c:353:58: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] snprintf(filename + strlen(filename) - 2, 3,