[vlc-commits] [Git][videolan/vlc][3.0.x] packetizer: flac: validate min/max framesize
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Fri Mar 27 06:43:21 UTC 2026
Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC
Commits:
4fef0227 by François Cartegnie at 2026-03-27T07:11:54+01:00
packetizer: flac: validate min/max framesize
Otherwise can O(!n) resyncs
refs #29572
(cherry picked from commit b66f8721862587dd1c7996813aa6dadba2184931)
- - - - -
1 changed file:
- modules/packetizer/flac.h
Changes:
=====================================
modules/packetizer/flac.h
=====================================
@@ -125,6 +125,9 @@ static inline int FLAC_CheckFrameInfo(const struct flac_stream_info *stream_info
h->i_frame_length < stream_info->min_blocksize) ||
h->i_frame_length > stream_info->max_blocksize)
return 0;
+ if(stream_info->max_framesize &&
+ stream_info->min_framesize > stream_info->max_framesize)
+ return 0;
if (h->i_bits_per_sample != stream_info->bits_per_sample)
return 0;
if (h->i_rate != stream_info->sample_rate)
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4fef022766423344e4dadf0bba32db431d0667ea
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4fef022766423344e4dadf0bba32db431d0667ea
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list