Skip to content
Snippets Groups Projects
Commit 9ff5e797 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avcodec/jpeg2000dec: Limit x/y step to 1<<30


Fixes infinite loop
Fixes Ticket4663

Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent 67fc8982
No related branches found
No related tags found
No related merge requests found
......@@ -1075,9 +1075,8 @@ static int jpeg2000_decode_packets(Jpeg2000DecoderContext *s, Jpeg2000Tile *tile
ok_reslevel = 1;
for (reslevelno = 0; ok_reslevel; reslevelno++) {
ok_reslevel = 0;
step_x = 32;
step_y = 32;
step_x = 30;
step_y = 30;
for (compno = 0; compno < s->ncomponents; compno++) {
Jpeg2000Component *comp = tile->comp + compno;
Jpeg2000CodingStyle *codsty = tile->codsty + compno;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment