mirror of
				https://github.com/gonum/gonum.git
				synced 2025-10-27 01:00: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) | ||||
|   | ||||
| @@ -53,6 +53,9 @@ func (impl Implementation) Dormqr(side blas.Side, trans blas.Transpose, m, n, k | ||||
| 		work[0] = float64(lworkopt) | ||||
| 		return | ||||
| 	} | ||||
| 	if len(work) < lwork { | ||||
| 		panic(badWork) | ||||
| 	} | ||||
| 	if left { | ||||
| 		if lwork < n { | ||||
| 			panic(badWork) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 kortschak
					kortschak