History

avfilter/af_afir: fix possible array read-overflow

Paul B Mahol committed 3 years ago

Commit 60244d01 parent 9fb2efe1 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_afir.c+1−1
@@ -222,8 +222,8 @@ static int init_segment(AVFilterContext *ctx, AudioFIRSegment *seg, int selir, · 221 unmodified lines
222 222
223 seg->fft_length = (part_size + 1) * 2;223 seg->fft_length = (part_size + 1) * 2;
224 seg->part_size = part_size;224 seg->part_size = part_size;
225 seg->block_size = FFALIGN(seg->fft_length, cpu_align);
226 seg->coeff_size = FFALIGN(seg->part_size + 1, cpu_align);225 seg->coeff_size = FFALIGN(seg->part_size + 1, cpu_align);
226 seg->block_size = FFMAX(seg->coeff_size * 2, FFALIGN(seg->fft_length, cpu_align));
227 seg->nb_partitions = nb_partitions;227 seg->nb_partitions = nb_partitions;
228 seg->input_size = offset + s->min_part_size;228 seg->input_size = offset + s->min_part_size;
229 seg->input_offset = offset;229 seg->input_offset = offset;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t