Skip to content

Commit

Permalink
prevent conj! into uninitialized memory (#40481)
Browse files Browse the repository at this point in the history
(cherry picked from commit aa7d879)
  • Loading branch information
KristofferC authored and staticfloat committed Dec 22, 2022
1 parent b9f3d49 commit 42f8483
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdlib/LinearAlgebra/src/matmul.jl
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ function copyto!(B::AbstractVecOrMat, ir_dest::UnitRange{Int}, jr_dest::UnitRang
copyto!(B, ir_dest, jr_dest, M, ir_src, jr_src)
else
LinearAlgebra.copy_transpose!(B, ir_dest, jr_dest, M, jr_src, ir_src)
tM == 'C' && conj!(B)
tM == 'C' && conj!(@view B[ir_dest, jr_dest])
end
B
end
Expand All @@ -693,7 +693,7 @@ function copy_transpose!(B::AbstractMatrix, ir_dest::UnitRange{Int}, jr_dest::Un
LinearAlgebra.copy_transpose!(B, ir_dest, jr_dest, M, ir_src, jr_src)
else
copyto!(B, ir_dest, jr_dest, M, jr_src, ir_src)
tM == 'C' && conj!(B)
tM == 'C' && conj!(@view B[ir_dest, jr_dest])
end
B
end
Expand Down

0 comments on commit 42f8483

Please sign in to comment.