Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
b66f8721 by François Cartegnie at 2026-01-30T09:24:31+00:00
packetizer: flac: validate min/max framesize
Otherwise can O(!n) resyncs
refs #29572
- - - - -
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/b66f8721862587dd1c7996813aa6dadba2184931
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/b66f8721862587dd1c7996813aa6dadba2184931
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits