[vlc-commits] [Git][videolan/vlc][master] packetizer: h264: check range for delta_scale

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Tue Jul 29 12:31:44 UTC 2025



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
5cf0e2af by François Cartegnie at 2025-07-29T11:57:00+00:00
packetizer: h264: check range for delta_scale

refs #29224

- - - - -


1 changed file:

- modules/packetizer/h264_nal.c


Changes:

=====================================
modules/packetizer/h264_nal.c
=====================================
@@ -333,6 +333,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/5cf0e2af37846baf1d6fa60a94b47cb4e450471f

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