commit | a8550c1d254a56cf1762a2993881d2b23c0c83dd | [log] [tgz] |
---|---|---|
author | Benny Siegert <bsiegert@google.com> | Fri Mar 18 17:49:56 2022 +0000 |
committer | Nigel Tao <nigeltao@golang.org> | Mon Mar 21 03:14:19 2022 +0000 |
tree | f3745f58c0a8aea8c9ab3a457c4fa8375dc1fdcc | |
parent | 723b81ca9867ff50b0503a48989028b6133eff47 [diff] |
tiff: do not crash when encoding with unsupported compression tiff.Encode only supports uncompressed and deflate compression. When called with a different compression type, it crashes with a nil pointer dereference. Return a proper error instead. Fixes golang/go#43137 Change-Id: I5dd9210ff0ae11b7e4f641375f26c6afc1515b98 Reviewed-on: https://go-review.googlesource.com/c/image/+/380334 Trust: Benny Siegert <bsiegert@gmail.com> Run-TryBot: Benny Siegert <bsiegert@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Nigel Tao <nigeltao@golang.org>
This repository holds supplementary Go image libraries.
The easiest way to install is to run go get -u golang.org/x/image/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/image
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the image repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/image:” in the subject line, so it is easy to find.