diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-08 21:13:15 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-08 21:13:15 +0200 |
commit | b615dbb319fc1748af6ea0ac95b5f89e03c5de0e (patch) | |
tree | 60c7ccc0b192897a3103045575d4bf255dce0ef5 /libavformat/utils.c | |
parent | ee475e272ec9d6ec141ebe4aa6baa3d51332ef3a (diff) | |
download | ffmpeg-b615dbb319fc1748af6ea0ac95b5f89e03c5de0e.tar.gz |
lavf: block special characters in dump metadata
This is limited to the chars that arent filtered by av_log() already
we might filter more aggressively if theres some case where this becomes
needed.
Fixes Ticket1181
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index be86a87fc1..f55e1e6de5 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3812,7 +3812,7 @@ static void dump_metadata(void *ctx, AVDictionary *m, const char *indent) av_log(ctx, AV_LOG_INFO, "%s %-16s: ", indent, tag->key); while(*p) { char tmp[256]; - size_t len = strcspn(p, "\xd\xa"); + size_t len = strcspn(p, "\x8\xa\xb\xc\xd"); av_strlcpy(tmp, p, FFMIN(sizeof(tmp), len+1)); av_log(ctx, AV_LOG_INFO, "%s", tmp); p += len; |