Skip to content

Commit 4f86650

Browse files
authored
Merge pull request #3392 from martin-frbg/lapack625
Fix out of bounds read in ?llarv (Reference-LAPACK PR 625)
2 parents c34e63f + 337b651 commit 4f86650

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lapack-netlib/SRC/clarrv.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ SUBROUTINE CLARRV( 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
*

lapack-netlib/SRC/dlarrv.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ SUBROUTINE DLARRV( 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
*

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
*

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)