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

Issue 86750044: code review 86750044: image/png: fix crash when an alleged PNG has too much p... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 1 month ago by nigeltao
Modified:
11 years, 1 month ago
Reviewers:
r
CC:
r, golang-codereviews
Visibility:
Public.

Description

image/png: fix crash when an alleged PNG has too much pixel data, so that the zlib.Reader returns nil error. Fixes issue 7762.

Patch Set 1 #

Patch Set 2 : diff -r a07ead0b8bcf https://code.google.com/p/go/ #

Patch Set 3 : diff -r a07ead0b8bcf https://code.google.com/p/go/ #

Total comments: 1

Patch Set 4 : diff -r b3405f9c2e32 https://code.google.com/p/go/ #

Patch Set 5 : diff -r 5cd29b3062c2 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M src/pkg/image/png/reader.go View 1 2 3 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 5
nigeltao
Hello r@golang.org (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go/
11 years, 1 month ago (2014-04-11 07:53:52 UTC) #1
r
https://codereview.appspot.com/86750044/diff/40001/src/pkg/image/png/reader.go File src/pkg/image/png/reader.go (right): https://codereview.appspot.com/86750044/diff/40001/src/pkg/image/png/reader.go#newcode526 src/pkg/image/png/reader.go:526: return img, nil this logic is hard for me ...
11 years, 1 month ago (2014-04-11 08:43:53 UTC) #2
nigeltao
PTAL.
11 years, 1 month ago (2014-04-14 00:06:58 UTC) #3
r
LGTM
11 years, 1 month ago (2014-04-15 15:46:02 UTC) #4
nigeltao
11 years, 1 month ago (2014-04-16 02:19:08 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=cdbb80e37f78 ***

image/png: fix crash when an alleged PNG has too much pixel data,
so that the zlib.Reader returns nil error.

Fixes issue 7762.

LGTM=r
R=r
CC=golang-codereviews
https://codereview.appspot.com/86750044
Sign in to reply to this message.

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