aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_linux_arm.s
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2015-06-19 15:39:11 +1000
committerNigel Tao <nigeltao@golang.org>2015-06-19 06:14:38 +0000
commit75ce33068d8c2c45f40e599ae2d4c80cb8b919d7 (patch)
treeb3d2b4bd919414e11b9e3a0a358284cf02f51cc1 /src/runtime/sys_linux_arm.s
parenta3c0730435a36fb5b22df35569ba6ad491a52886 (diff)
downloadgo-75ce33068d8c2c45f40e599ae2d4c80cb8b919d7.tar.xz
image/gif: re-enable some invalid-palette tests.
These tests were broken by https://go-review.googlesource.com/#/c/11227/ which fixed the LZW encoder to reject invalid input. For TestNoPalette, the LZW encoder with a litWidth of 2 now rejects an input byte of 128, so we change 128 to 3, as 3 <= (1<<2 - 1). For TestPixelOutsidePaletteRange, the LZW encoder similarly rejects an input byte of 255. Prior to golang.org/cl/11227, the encoder (again with a litWidth of 2) accepted the 255 input byte, but masked it with (1<<2 - 1), so that the 255 test case was effectively the same as the 3 test case. After that LZW CL, the 255 input byte is simply invalid, so we remove it as a test case. The test still tests pixels outside of the palette range, since 3 >= the length of the global palette, which is 2. Change-Id: I50be9623ace016740e34801549c15f83671103eb Reviewed-on: https://go-review.googlesource.com/11273 Reviewed-by: David Symonds <dsymonds@golang.org>
Diffstat (limited to 'src/runtime/sys_linux_arm.s')
0 files changed, 0 insertions, 0 deletions