Fix a buffer overflow with MAX_STACK_ALLOC size in dgemv_t

Refs #478, #482, 9798481, fd9fd42
This commit is contained in:
Jerome Robert 2015-04-15 09:41:45 +02:00
parent fb02cb0a41
commit a4c96eca67
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ int CNAME(BLASLONG m, BLASLONG n, BLASLONG dummy1, FLOAT alpha, FLOAT *a, BLASLO
if ( n < 1 ) return(0);
xbuffer = buffer;
ytemp = buffer + NBMAX;
ytemp = buffer + (m < NBMAX ? m : NBMAX);
n0 = n / NBMAX;
n1 = (n % NBMAX) >> 2 ;