Skip to content

Commit ddb0ff5

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lapack-netlib/SRC/slarrv.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ SUBROUTINE SLARRV( N, VL, VU, D, L, PIVMIN,
353353
*
354354
* Quick return if possible
355355
*
356-
IF( N.LE.0 ) THEN
356+
IF( (N.LE.0).OR.(M.LE.0) ) THEN
357357
RETURN
358358
END IF
359359
*

0 commit comments

Comments
 (0)