http: add missing allocation check

This commit is contained in:
Alexandre Janniaux 2023-08-24 18:57:01 +02:00 committed by Jean-Baptiste Kempf
parent 5a42e03e46
commit 2fc3d1552a

View File

@ -475,6 +475,9 @@ static int ReadICYMeta( stream_t *p_access )
/* msg_Dbg( p_access, "ICY meta size=%u", i_size); */
psz_meta = malloc( i_size + 1 );
if (psz_meta == NULL)
return VLC_ENOMEM;
for( i_read = 0; i_read < i_size; )
{
int i_tmp;