﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
571	RPR - Multiplication Overflow	bheng		"The following 32-bit multiplications in xPredInterBlkRPR( ) can overflow the signed 32-bit range before the result is assigned to the 64-bit x0Int/y0Int output.


    x0Int = ( ( blk.pos().x << ( 4 + ::getComponentScaleX( compID, chFmt ) ) ) + mv.getHor() )* scalingRatio.first;

    y0Int = ( ( blk.pos().y << ( 4 + ::getComponentScaleY( compID, chFmt ) ) ) + mv.getVer() )* scalingRatio.second;


I would recommend type-casting the scaling ratios to (int64_t) first in order to use 64-bit multiplications."	defect	closed	minor	VTM-7.0	VTM	VTM-6.1	fixed		ksuehring XiangLi fbossen jvet@…
