mirror of
https://github.com/gonum/gonum.git
synced 2025-10-26 08:40:26 +08:00
cgo,native: explicitly check len(work) in Dormqr
This commit is contained in:
@@ -959,7 +959,9 @@ func (impl Implementation) Dormqr(side blas.Side, trans blas.Transpose, m, n, k
|
||||
work[0] = float64(n)
|
||||
return
|
||||
}
|
||||
|
||||
if len(work) < lwork {
|
||||
panic(badWork)
|
||||
}
|
||||
if left {
|
||||
if lwork < n {
|
||||
panic(badWork)
|
||||
|
||||
Reference in New Issue
Block a user