dlarfb - uninitialized reference possible

Post here if you want to report a bug to the LAPACK team

dlarfb - uninitialized reference possible

Postby lawrence mulholland » Mon Jun 11, 2012 6:43 am

Line 256 of DLARFB.f
LASTV = MAX( K, ILADLR( M, K, V, LDV ) )
should be
lastv = k + ILADLR(m-k,k,v(k+1,1),ldv)

the former can access unititialized elements of V when this has column of zeros.
lawrence mulholland
 
Posts: 1
Joined: Mon Jun 11, 2012 6:33 am

Re: dlarfb - uninitialized reference possible

Postby admin » Tue Jun 12, 2012 1:33 pm

We found that your solution would break if m=n=k, for example, since v(k+1,1) could be out of bounds.
Could you be more explicit on "the former can access unititialized elements of V when this has column of zeros"? do you mean when V is the zero matrix? If so, that's not a problem as long as you have a valid value of k.
admin
Site Admin
 
Posts: 436
Joined: Wed Dec 08, 2004 7:07 pm


Return to Bug report

Who is online

Users browsing this forum: No registered users and 1 guest

cron