diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-25 12:22:21 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-12-07 11:16:14 +0100 |
commit | 7e29e0278f228811f11e29b0692ada2f50fa7998 (patch) | |
tree | b3cf7e19c7f75ecf136ce4b8faa0c19b1b3e6481 /libavformat/options.c | |
parent | 177a328c7c7e3a2c10296abf20b0b40207153c76 (diff) | |
download | ffmpeg-7e29e0278f228811f11e29b0692ada2f50fa7998.tar.gz |
lavf/ftp: check for truncation in snprintf
Silences e.g. the following warning in gcc 10:
src/libavformat/ftp.c: In function ‘ftp_move’:
src/libavformat/ftp.c:1122:46: warning: ‘%s’ directive output may be truncated writing up to 4095 bytes into a region of size 4091 [-Wformat-truncation=]
1122 | snprintf(command, sizeof(command), "RNTO %s\r\n", path);
| ^~ ~~~~
src/libavformat/ftp.c:1122:5: note: ‘snprintf’ output between 8 and 4103 bytes into a destination of size 4096
1122 | snprintf(command, sizeof(command), "RNTO %s\r\n", path);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'libavformat/options.c')
0 files changed, 0 insertions, 0 deletions