mirror of
https://github.com/videolan/vlc.git
synced 2024-11-23 09:53:43 +08:00
http: add missing allocation check
This commit is contained in:
parent
5a42e03e46
commit
2fc3d1552a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user