[vlc-commits] [Git][videolan/vlc][3.0.x] packetizer: h264: check range for delta_scale

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Aug 12 14:18:50 UTC 2025



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


Commits:
87f3a642 by François Cartegnie at 2025-08-12T14:02:22+00:00
packetizer: h264: check range for delta_scale

refs #29224

(cherry picked from commit 5cf0e2af37846baf1d6fa60a94b47cb4e450471f)

- - - - -


1 changed file:

- modules/packetizer/h264_nal.c


Changes:

=====================================
modules/packetizer/h264_nal.c
=====================================
@@ -325,6 +325,8 @@ static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
                     {
                         /* delta_scale */
                         i_tmp = bs_read_se( p_bs );
+                        if(i_tmp < -128 || i_tmp > 127)
+                          return false;
                         i_nextscale = ( i_lastscale + i_tmp + 256 ) % 256;
                         /* useDefaultScalingMatrixFlag = ... */
                     }



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

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