[bTSstream-devel] [Git][videolan/bitstream][master] 8 commits: mpeg/psi: accept 4093-byte private sections in psi_assemble_payload
Christophe Massiot (@cmassiot)
gitlab at videolan.org
Mon Oct 26 11:15:44 UTC 2026
Christophe Massiot pushed to branch master at VideoLAN / bitstream
Commits:
3aef4e96 by Ankit Garg at 2026-10-22T23:01:15+05:30
mpeg/psi: accept 4093-byte private sections in psi_assemble_payload
PSI_PRIVATE_MAX_SIZE is the maximum section_length (4093), which makes
for a 4096-byte section once the 3-byte header is added. The validity
check compared the total section size against it, so sections with a
section_length of 4091 to 4093 were wrongly dropped as invalid.
Compare against PSI_PRIVATE_MAX_SIZE + PSI_HEADER_SIZE instead, which
matches the size of the buffer allocated by psi_private_allocate().
- - - - -
23e77d9a by Marton Balint at 2026-10-26T12:14:47+01:00
ietf/rtp: add rtp_get_payload_offset helper
Signed-off-by: Marton Balint <cus at passwd.hu>
- - - - -
cdc965db by Marton Balint at 2026-10-26T12:14:47+01:00
ietf/rtp: use rtp_get_payload_offset() in rtp_payload_size()
To avoid some pointer arithmetic which could be undefined behaviour in case of
a corrupt RTP packet.
Signed-off-by: Marton Balint <cus at passwd.hu>
- - - - -
bec1e4a2 by Marton Balint at 2026-10-26T12:14:47+01:00
smpte/2108: add stddef.h include for NULL constant
Fixes "make check".
Signed-off-by: Marton Balint <cus at passwd.hu>
- - - - -
df3b77dd by Marton Balint at 2026-10-26T12:14:47+01:00
common: fix extra ; outside a function warnings
Signed-off-by: Marton Balint <cus at passwd.hu>
- - - - -
fa976daf by Marton Balint at 2026-10-26T12:14:47+01:00
dvb/si: fix extra ; outside a function warnings
Signed-off-by: Marton Balint <cus at passwd.hu>
- - - - -
0d1bb1cc by Marton Balint at 2026-10-26T12:14:47+01:00
mpeg/psi: fix extra ; outside a function warnings
Signed-off-by: Marton Balint <cus at passwd.hu>
- - - - -
23489c01 by Christophe Massiot at 2026-10-26T12:15:32+01:00
Merge branch 'AnKiT-GaRG2-fix/psi-assemble-max-private-section'
- - - - -
1 changed file:
- mpeg/psi/psi.h
Changes:
=====================================
mpeg/psi/psi.h
=====================================
@@ -362,7 +362,7 @@ static inline uint8_t *psi_assemble_payload(uint8_t **pp_psi_buffer,
uint16_t i_section_size = psi_get_length(*pp_psi_buffer)
+ PSI_HEADER_SIZE;
- if (i_section_size > PSI_PRIVATE_MAX_SIZE) {
+ if (i_section_size > PSI_PRIVATE_MAX_SIZE + PSI_HEADER_SIZE) {
/* invalid section */
psi_assemble_reset(pp_psi_buffer, pi_psi_buffer_used);
*pi_length = 0;
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/e3fa0b8373efb4cfb191bbd9614037e21439d4f8...23489c017d85fb8c6c62c1bf8d2ea07a3dbf6a09
--
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/compare/e3fa0b8373efb4cfb191bbd9614037e21439d4f8...23489c017d85fb8c6c62c1bf8d2ea07a3dbf6a09
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 biTStream-devel
mailing list