• Alessandro Ghedini's avatar
    http: Properly initialize icy headers string · 6998a9f4
    Alessandro Ghedini authored
    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: 's avatarLuca Barbato <lu_zero@gentoo.org>
    6998a9f4
http.c 34.6 KB