Skip to content

Commit

Permalink
Fix out of bound writes in fix_bitshift() of the shorten decoder.
Browse files Browse the repository at this point in the history
The data pointers s->decoded[*] already take into account s->nwrap.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
Laurent Aimar authored and michaelni committed Sep 30, 2011
1 parent c329972 commit f42b319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/shorten.c
Expand Up @@ -155,7 +155,7 @@ static void fix_bitshift(ShortenContext *s, int32_t *buffer)

if (s->bitshift != 0)
for (i = 0; i < s->blocksize; i++)
buffer[s->nwrap + i] <<= s->bitshift;
buffer[i] <<= s->bitshift;
}


Expand Down

0 comments on commit f42b319

Please sign in to comment.