golang-image/draw
Jiulong Wang 12117c17ca draw: fix crash caused by Scale by Copy shortcut
When DstMask is not nil, this shortcut causes stack overflow because
Copy function in turn will call Scale with same dr and sr.

Fixes golang/go#23107

Change-Id: I8ccadbd9b7f16363ac17b6114308527d6fa9456e
Reviewed-on: https://go-review.googlesource.com/83537
Reviewed-by: Nigel Tao <nigeltao@golang.org>
Run-TryBot: Nigel Tao <nigeltao@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-12-14 22:51:56 +00:00
..
draw.go draw: alias the standard library's image/draw's exported types. 2017-02-15 00:37:23 +00:00
example_test.go image/draw: have Transform take a f64.Aff3 instead of a *f64.Aff3. 2015-07-29 01:18:37 +00:00
gen.go draw: fix crash caused by Scale by Copy shortcut 2017-12-14 22:51:56 +00:00
go1_8.go draw: use type aliases for go1.8.typealias builds too 2017-02-27 16:05:05 +00:00
go1_9.go draw: use type aliases for go1.8.typealias builds too 2017-02-27 16:05:05 +00:00
impl.go draw: fix crash caused by Scale by Copy shortcut 2017-12-14 22:51:56 +00:00
scale_test.go draw: fix crash caused by Scale by Copy shortcut 2017-12-14 22:51:56 +00:00
scale.go image/draw: have Transform take a f64.Aff3 instead of a *f64.Aff3. 2015-07-29 01:18:37 +00:00
stdlib_test.go draw: tweak the YCbCr to RGBA conversion formula again. 2017-02-10 23:08:06 +00:00