Following bug report and fix sent by Michael Chuvelev (Intel) on Fri, 2 Apr 2010...
authorjulie <julielangou@users.noreply.github.com>
Fri, 2 Apr 2010 19:06:51 +0000 (19:06 +0000)
committerjulie <julielangou@users.noreply.github.com>
Fri, 2 Apr 2010 19:06:51 +0000 (19:06 +0000)
commit0bb0871778655391667f4c3d54ecaa66e212398d
tree1cdc7289f96c98cb76d18bac41fa5fd04d4c67fd
parent26758c2193fa018bc0811894f78dcdfa8c77839f
   Following bug report and fix sent by Michael Chuvelev (Intel) on Fri, 2 Apr 2010 to "lapack@cs.utk.edu".
Issue in LAPACK 3.2.1 *la_{po,sy,he}rfsx_extended.f sources. For instanse, in sla_syrfsx_extended.f:

DY is described as
*     DY             (input) REAL array, dimension (N)
*     Workspace to hold the intermediate solution.

whereas N-by-NRHS array is referenced at DY due to the following statement (line 384):

            CALL SSYTRS( UPLO, N, NRHS, AF, LDAF, IPIV, DY, N, INFO )

This may lead to an outside memory corruption. I assume one RHS should be referenced here, because all the RHSs are considered individually in the loop by J. That is, substituting NRHS by 1:

            CALL SSYTRS( UPLO, N, 1, AF, LDAF, IPIV, DY, N, INFO )

should fix the issue. This is actual for any subroutine mentioned.
SRC/cla_herfsx_extended.f
SRC/cla_porfsx_extended.f
SRC/cla_syrfsx_extended.f
SRC/dla_porfsx_extended.f
SRC/dla_syrfsx_extended.f
SRC/sla_porfsx_extended.f
SRC/sla_syrfsx_extended.f
SRC/zla_herfsx_extended.f
SRC/zla_porfsx_extended.f
SRC/zla_syrfsx_extended.f