[vlc-commits] [Git][videolan/vlc][master] packetizer: flac: check return of block_PeekOffsetBytes
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed Oct 8 12:40:12 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
cd33e98b by Tristan Matthews at 2025-10-08T11:51:44+00:00
packetizer: flac: check return of block_PeekOffsetBytes
Fixes CID 1666158
- - - - -
1 changed file:
- modules/packetizer/flac.c
Changes:
=====================================
modules/packetizer/flac.c
=====================================
@@ -488,9 +488,10 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
}
/* Copy from previous sync point up to to current (offset) */
- block_PeekOffsetBytes( &p_sys->bytestream, p_sys->i_buf_offset,
- &p_sys->p_buf[p_sys->i_buf_offset],
- p_sys->i_offset - p_sys->i_buf_offset );
+ if( block_PeekOffsetBytes( &p_sys->bytestream, p_sys->i_buf_offset,
+ &p_sys->p_buf[p_sys->i_buf_offset],
+ p_sys->i_offset - p_sys->i_buf_offset ))
+ return NULL;
/* update crc to include this data chunk */
for( size_t i = p_sys->i_buf_offset; i < p_sys->i_offset - 2; i++ )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cd33e98bad43d2b7d6fd0830cfb7c9c2e052dbcb
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/cd33e98bad43d2b7d6fd0830cfb7c9c2e052dbcb
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list