Merge pull request #543 from jeromerobert/develop

Fix a buffer overflow with MAX_STACK_ALLOC size in dgemv_t
This commit is contained in:
Zhang Xianyi 2015-04-15 11:18:14 -05:00
commit 37b9033c90
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); if ( n < 1 ) return(0);
xbuffer = buffer; xbuffer = buffer;
ytemp = buffer + NBMAX; ytemp = buffer + (m < NBMAX ? m : NBMAX);
n0 = n / NBMAX; n0 = n / NBMAX;
n1 = (n % NBMAX) >> 2 ; n1 = (n % NBMAX) >> 2 ;