You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
indeo3: fix null pointer dereference in vulnerable.mov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -226,8 +226,11 @@ static void copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell)
|
|||||||
/* setup output and reference pointers */
|
/* setup output and reference pointers */
|
||||||
offset_dst = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2);
|
offset_dst = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2);
|
||||||
dst = plane->pixels[ctx->buf_sel] + offset_dst;
|
dst = plane->pixels[ctx->buf_sel] + offset_dst;
|
||||||
|
if(cell->mv_ptr){
|
||||||
mv_y = cell->mv_ptr[0];
|
mv_y = cell->mv_ptr[0];
|
||||||
mv_x = cell->mv_ptr[1];
|
mv_x = cell->mv_ptr[1];
|
||||||
|
}else
|
||||||
|
mv_x= mv_y= 0;
|
||||||
offset = offset_dst + mv_y * plane->pitch + mv_x;
|
offset = offset_dst + mv_y * plane->pitch + mv_x;
|
||||||
src = plane->pixels[ctx->buf_sel ^ 1] + offset;
|
src = plane->pixels[ctx->buf_sel ^ 1] + offset;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user