mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-08 17:59:00 +08:00
bug #770: fix out of bounds access
This commit is contained in:
parent
da62eb22e4
commit
ac1bb3e5b3
@ -157,6 +157,9 @@ int main()
|
|||||||
void operator()(mpreal* res, Index resStride, const mpreal* blockA, const mpreal* blockB, Index rows, Index depth, Index cols, mpreal alpha,
|
void operator()(mpreal* res, Index resStride, const mpreal* blockA, const mpreal* blockB, Index rows, Index depth, Index cols, mpreal alpha,
|
||||||
Index strideA=-1, Index strideB=-1, Index offsetA=0, Index offsetB=0)
|
Index strideA=-1, Index strideB=-1, Index offsetA=0, Index offsetB=0)
|
||||||
{
|
{
|
||||||
|
if(rows==0 || cols==0 || depth==0)
|
||||||
|
return;
|
||||||
|
|
||||||
mpreal acc1(0,mpfr_get_prec(blockA[0].mpfr_srcptr())),
|
mpreal acc1(0,mpfr_get_prec(blockA[0].mpfr_srcptr())),
|
||||||
tmp (0,mpfr_get_prec(blockA[0].mpfr_srcptr()));
|
tmp (0,mpfr_get_prec(blockA[0].mpfr_srcptr()));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user