Skip to content

Commit 337b651

Browse files
authored
Fix out of bounds read in ?llarv (Reference-LAPACK PR 625)
1 parent ddb0ff5 commit 337b651

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lapack-netlib/SRC/zlarrv.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ SUBROUTINE ZLARRV( N, VL, VU, D, L, PIVMIN,
351351
*
352352
* Quick return if possible
353353
*
354-
IF( N.LE.0 ) THEN
354+
IF( (N.LE.0).OR.(M.LE.0) ) THEN
355355
RETURN
356356
END IF
357357
*

0 commit comments

Comments
 (0)