diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2014-03-12 16:28:22 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-03-12 20:13:36 +0100 |
commit | 6998a9f4c4e069f515c50614179f4cfc7d0184f5 (patch) | |
tree | c5d766a7d20025426481d89d1e714b3cd6d31bd2 /libavcodec/truespeech_data.h | |
parent | d15c536123a44362ace6299c391a492c90b83fc7 (diff) | |
download | ffmpeg-6998a9f4c4e069f515c50614179f4cfc7d0184f5.tar.gz |
http: Properly initialize icy headers string
The icy_metadata_headers string never gets initialized, so,
during the first call to av_strlcatf() in parse_icy(),
strlen() will be called on a pointer to uninitialized memory.
At best this causes some garbage data to be left at the
start of the string.
By initializing icy_metadata_headers to the empty string, the
first call to strlen() will always return 0, so that data is
appended from the start of the string.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/truespeech_data.h')
0 files changed, 0 insertions, 0 deletions