diff options
author | Fabian Greffrath <fabian@greffrath.com> | 2012-03-05 16:06:01 +0100 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-03-05 17:03:00 +0100 |
commit | c9dbac36ad4bac07f6c1d06d465e361ab55bcb95 (patch) | |
tree | a0abe003ab53c1c33cece5981f589a0aa5c3be42 /libavcodec | |
parent | 0a41f47dc17b49acaff6fe469a6ab358986cc449 (diff) | |
download | ffmpeg-c9dbac36ad4bac07f6c1d06d465e361ab55bcb95.tar.gz |
Fix format string vulnerability detected by -Wformat-security.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/srtdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/srtdec.c b/libavcodec/srtdec.c index 677c5501f8..99cbd9428b 100644 --- a/libavcodec/srtdec.c +++ b/libavcodec/srtdec.c @@ -110,7 +110,7 @@ static const char *srt_to_ass(AVCodecContext *avctx, char *out, char *out_end, for (j=sptr-2; j>=0; j--) if (stack[j].param[i][0]) { out += snprintf(out, out_end-out, - stack[j].param[i]); + "%s", stack[j].param[i]); break; } } else { @@ -146,7 +146,7 @@ static const char *srt_to_ass(AVCodecContext *avctx, char *out, char *out_end, for (i=0; i<PARAM_NUMBER; i++) if (stack[sptr].param[i][0]) out += snprintf(out, out_end-out, - stack[sptr].param[i]); + "%s", stack[sptr].param[i]); } } else if (!buffer[1] && strspn(buffer, "bisu") == 1) { out += snprintf(out, out_end-out, |