[vlc-commits] [Git][videolan/vlc][3.0.x] real: fix FPE
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Mar 13 10:18:41 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
3f8a631f by Thomas Guillem at 2026-03-13T09:49:03+00:00
real: fix FPE
```
=================================================================
==1032361==ERROR: AddressSanitizer: FPE on unknown address 0x7f8748be4896 (pc 0x7f8748be4896 bp 0x7ffd6ee29ce0 sp 0x7ffd6ee29c80 T0)
#0 0x7f8748be4896 in DemuxAudioMethod1 ../../modules/demux/real.c:700
#1 0x7f8748be5894 in DemuxAudio ../../modules/demux/real.c:912
#2 0x7f8748be6cb9 in Demux ../../modules/demux/real.c:355
#3 0x55e6d08ff409 in demux_Demux ../../include/vlc_demux.h:354
#4 0x55e6d08ff409 in demux_process_stream ../../test/src/input/demux-run.c:284
#5 0x55e6d08ff6ba in vlc_demux_process_url ../../test/src/input/demux-run.c:326
#6 0x55e6d08ff759 in vlc_demux_process_path ../../test/src/input/demux-run.c:340
#7 0x55e6d08fe549 in main ../../test/vlc-demux-run.c:50
#8 0x7f8749634ca7 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
#9 0x7f8749634d64 in __libc_start_main_impl ../csu/libc-start.c:360
#10 0x55e6d08fe350 in _start (/home/tom/work/git/vlc-3.0/build-asan/test/vlc-demux-dec-run+0x2350) (BuildId: 3a877603d00fd3ec7dfb4d665218763348d05e8d)
```
- - - - -
1 changed file:
- modules/demux/real.c
Changes:
=====================================
modules/demux/real.c
=====================================
@@ -697,7 +697,8 @@ static void DemuxAudioMethod1( demux_t *p_demux, real_track_t *tk, vlc_tick_t i_
}
else
{
- const int y = tk->i_subpacket / (tk->i_subpacket_h / 2);
+ const int y = tk->i_subpacket_h > 0 ?
+ tk->i_subpacket / (tk->i_subpacket_h / 2) : 0;
assert( tk->fmt.i_codec == VLC_CODEC_RA_288 );
for( int i = 0; i < tk->i_subpacket_h / 2; i++ )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3f8a631f4e47ec8343cef6e9c4d114c4b141fb23
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/3f8a631f4e47ec8343cef6e9c4d114c4b141fb23
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