[vlc-commits] [Git][videolan/vlc][3.0.x] demux: ty: discard bitmask sizes bigger than 8 bytes

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Sep 1 14:24:43 UTC 2026



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
121970d0 by Steve Lhomme at 2026-09-01T14:12:09+00:00
demux: ty: discard bitmask sizes bigger than 8 bytes

We keep skipping the data as the format intends.

Fixes #30044

(cherry picked from commit 0c6cfc30326e49edbcc284671745690177d5834a)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

- - - - -


1 changed file:

- modules/demux/ty.c


Changes:

=====================================
modules/demux/ty.c
=====================================
@@ -1575,6 +1575,9 @@ static int ty_stream_seek_time(demux_t *p_demux, uint64_t l_seek_time)
     }
 
     /* determine which chunk has our seek_time */
+    if (p_sys->i_bits_per_seq_entry > (ARRAY_SIZE(p_sys->seq_table->chunk_bitmask) * 8))
+        i = p_sys->i_bits_per_seq_entry; // pretend we looped through the chunks
+    else
     for (i=0; i<p_sys->i_bits_per_seq_entry; i++) {
         uint64_t l_chunk_nr = i_seq_entry * p_sys->i_bits_per_seq_entry + i;
         uint64_t l_chunk_offset = (l_chunk_nr + 1) * CHUNK_SIZE;



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/121970d092572372324465305d6b73ce977dff7b
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list