Skip to content

Commit

Permalink
prevent conj! into uninitialized memory
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Apr 14, 2021
1 parent 2fed7c3 commit 32f1f98
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 32f1f98

Please sign in to comment.