[vlc-commits] [Git][videolan/vlc][master] flac: handle NULL streaminfo

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Sep 11 12:29:20 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
e7396baa by Tristan Matthews at 2025-09-11T12:10:22+00:00
flac: handle NULL streaminfo

Fixes https://issues.oss-fuzz.com/issues/443965736

- - - - -


1 changed file:

- modules/packetizer/flac.h


Changes:

=====================================
modules/packetizer/flac.h
=====================================
@@ -246,7 +246,7 @@ static inline int FLAC_ParseSyncInfo(const uint8_t *p_buf, unsigned i_buf,
         return 0;
 
     /* Invalid Sample/Frame number */
-    if (stream_info->total_samples != 0 && i_fsnumber > stream_info->total_samples)
+    if (!stream_info || stream_info->total_samples != 0 && i_fsnumber > stream_info->total_samples)
         return 0;
 
     i_header += i_read;



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e7396baa09fa844e6ef2efaa91b6ad4cac706fd4

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e7396baa09fa844e6ef2efaa91b6ad4cac706fd4
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