go/src/image
Nigel Tao 0cf7331391 image/png: reject zero-width and zero-height images.
http://www.w3.org/TR/PNG/#11IHDR says that "Zero is an invalid value".

This change only affects the decoder. The encoder already checks
non-positive instead of negative.

Fixes #12545.

Change-Id: Iba40e1a2f4e0eec8b2fbcd3bbdae886311434da7
Reviewed-on: https://go-review.googlesource.com/14411
Reviewed-by: Rob Pike <r@golang.org>
2015-09-09 02:53:58 +00:00
..
color image/color: fix format typo in the tests. 2015-07-16 01:41:34 +00:00
draw image/draw: optimize out some bounds checks. 2015-09-01 00:34:26 +00:00
gif image/gif: map/slice literals janitoring 2015-09-04 11:58:15 +00:00
internal/imageutil image/color: tweak the YCbCr to RGBA conversion formula. 2015-07-15 05:29:00 +00:00
jpeg image/jpeg: don't unread a byte if we've already taken bits from it. 2015-07-14 06:21:57 +00:00
png image/png: reject zero-width and zero-height images. 2015-09-09 02:53:58 +00:00
testdata image/jpeg: support chroma hv values other than 0x11. 2015-03-11 00:10:09 +00:00
decode_example_test.go image/color: tweak the YCbCr to RGBA conversion formula. 2015-07-15 05:29:00 +00:00
decode_test.go image/jpeg: support chroma hv values other than 0x11. 2015-03-11 00:10:09 +00:00
format.go
geom.go image: make Rectangle implement Image. 2015-03-04 00:03:46 +00:00
geom_test.go image: change Rectangle.Eq to return true for all empty rectangles, even 2015-02-18 23:50:09 +00:00
image.go all: link to https instead of http 2015-07-11 14:36:33 +00:00
image_test.go
names.go
ycbcr.go image: add YCbCrSubsampleRatio411 and YCbCrSubsampleRatio410. 2015-02-26 00:14:16 +00:00
ycbcr_test.go image: add YCbCrSubsampleRatio411 and YCbCrSubsampleRatio410. 2015-02-26 00:14:16 +00:00