﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
977	writing outside of allocated memory	VChemezov		"InterPrediction.cpp line 185:
m_filteredBlockTmp[i][c] = ( Pel* ) xMalloc( Pel, ( extWidth + 4 ) * ( extHeight + 7 + 4 ) );

This temporal block is allocated with size 152x144 with no specified stride, but is used with stride equal to 512 in xPredInterBlk() (line 792).
Cause stride is derived from dstBuf.stride.

If I understand right dstBuf is allocated as 128x128 pixels in quaterpel dimension, so real size of dstBuf is 512x512. But m_filteredBlockTmp is only in real pixels dimension. And that is followed by writing out of allocated memory in some cases.

Please see attached stream."	defect	new	minor		VTM	VTM-8.0		memory	ksuehring XiangLi fbossen jvet@…
