Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Issue 4515073: code review 4515073: image/tiff: Reject images with SampleFormat != 1. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 12 months ago by bsiegert
Modified:
13 years, 11 months ago
Reviewers:
gri, rsc
CC:
nigeltao, golang-dev
Visibility:
Public.

Description

image/tiff: Reject images with SampleFormat != 1. The TIFF spec says that a baseline TIFF reader must gracefully terminate when the image has a SampleFormat tag which it does not support. For baseline compatibility, only SampleFormat=1 (the default) is needed. Images with other sample formats (e.g. floating-point color values) are very rare in practice.

Patch Set 1 #

Patch Set 2 : diff -r fcf726564af5 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r fcf726564af5 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -0 lines) Patch
M src/pkg/image/tiff/consts.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/image/tiff/reader.go View 1 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 6
bsiegert
Hello nigeltao (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 12 months ago (2011-05-12 20:26:11 UTC) #1
nigeltao
LGTM.
13 years, 12 months ago (2011-05-12 20:41:14 UTC) #2
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=f131fe9b1b9b *** image/tiff: Reject images with SampleFormat != 1. The TIFF spec ...
13 years, 12 months ago (2011-05-13 02:34:55 UTC) #3
rsc
I still don't know what's wrong with your client, Nigel. If you have time to ...
13 years, 12 months ago (2011-05-13 02:36:24 UTC) #4
gri
I am seing the same (?) problem at home. I tried a clpatch and got: ...
13 years, 12 months ago (2011-05-13 02:53:10 UTC) #5
rsc
13 years, 12 months ago (2011-05-13 02:59:48 UTC) #6
Can you please try this?

$ python
Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from mercurial import ui, hg
>>> repo = hg.repository(ui.ui(), '.')
>>> "dd5166932c9a" in repo
True
>>> repo["dd5166932c9a"]
<changectx dd5166932c9a>
>>>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b