[vlc-commits] [Git][videolan/vlc][master] aout: filters: fix the last conversion overflow check
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Oct 30 06:49:41 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
9a02ea9b by Martin Finkel at 2026-10-30T06:28:11+00:00
aout: filters: fix the last conversion overflow check
The sample format conversion checked whether the table had room at the
start of the pipeline creation instead of after the previous conversions.
When the remix filled the last slot, the converter was written past the
end of the filters table.
Fixes 3a2ba96b99e5
- - - - -
1 changed file:
- src/audio_output/filters.c
Changes:
=====================================
src/audio_output/filters.c
=====================================
@@ -266,7 +266,7 @@ static int aout_FiltersPipelineCreate(vlc_object_t *obj, struct aout_filter *fil
/* Format */
if (input.i_format != outfmt->i_format)
{
- if (max == 0)
+ if (n == max)
goto overflow;
filter_t *f = TryFormat (obj, outfmt->i_format, &input);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9a02ea9b6cd3fbfcfb0b6e90db1a566a02c8db05
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9a02ea9b6cd3fbfcfb0b6e90db1a566a02c8db05
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