Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Issue 1118002: libpng: update to 1.2.43 (Closed)

Created:
10 years, 9 months ago by agl
Modified:
9 years, 7 months ago
Reviewers:
SkyLined
CC:
chromium-reviews
Visibility:
Public.

Description

libpng: update to 1.2.43 I unpacked libpng 1.2.43 and did: cd third_party/libpng for x in $(ls -1) ; do cp /tmp/libpng-1.2.43/$x .; done The diffs appear to all be safe. The Chromium specific config is in pngusr.h and isn't touched by this change. 1.2.43 fixes http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0205 c7013d773eb45b8ed6a864e419e544106a0dd95d /tmp/libpng-1.2.43.tar.xz BUG=38512 TEST=none

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2932 lines, -2069 lines) Patch
M third_party/libpng/LICENSE View 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/libpng/README View 8 chunks +52 lines, -44 lines 0 comments Download
M third_party/libpng/README.chromium View 1 chunk +1 line, -1 line 0 comments Download
M third_party/libpng/png.h View 74 chunks +747 lines, -647 lines 0 comments Download
M third_party/libpng/png.c View 32 chunks +220 lines, -42 lines 0 comments Download
M third_party/libpng/pngconf.h View 38 chunks +266 lines, -97 lines 0 comments Download
M third_party/libpng/pngerror.c View 14 chunks +53 lines, -28 lines 0 comments Download
M third_party/libpng/pnggccrd.c View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/libpng/pngget.c View 39 chunks +91 lines, -86 lines 0 comments Download
M third_party/libpng/pngmem.c View 7 chunks +30 lines, -6 lines 0 comments Download
M third_party/libpng/pngpread.c View 39 chunks +73 lines, -61 lines 0 comments Download
M third_party/libpng/pngread.c View 53 chunks +259 lines, -201 lines 0 comments Download
M third_party/libpng/pngrio.c View 8 chunks +17 lines, -11 lines 0 comments Download
M third_party/libpng/pngrtran.c View 101 chunks +237 lines, -162 lines 0 comments Download
M third_party/libpng/pngrutil.c View 65 chunks +340 lines, -227 lines 2 comments Download
M third_party/libpng/pngset.c View 59 chunks +116 lines, -145 lines 0 comments Download
M third_party/libpng/pngtrans.c View 19 chunks +37 lines, -12 lines 0 comments Download
M third_party/libpng/pngwio.c View 11 chunks +19 lines, -15 lines 0 comments Download
M third_party/libpng/pngwrite.c View 64 chunks +217 lines, -183 lines 0 comments Download
M third_party/libpng/pngwtran.c View 9 chunks +34 lines, -24 lines 0 comments Download
M third_party/libpng/pngwutil.c View 71 chunks +116 lines, -72 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
agl
(I don't know if you're the right person for this - feel free to decline. ...
10 years, 9 months ago (2010-03-18 15:47:53 UTC) #1
SkyLined
LGTM, appart from the potential performance hit in the decoder. http://codereview.chromium.org/1118002/diff/1/16 File third_party/libpng/pngrutil.c (right): http://codereview.chromium.org/1118002/diff/1/16#newcode335 ...
10 years, 9 months ago (2010-03-18 16:34:46 UTC) #2
agl
http://codereview.chromium.org/1118002/diff/1/16 File third_party/libpng/pngrutil.c (right): http://codereview.chromium.org/1118002/diff/1/16#newcode335 third_party/libpng/pngrutil.c:335: 0/*output*/, 0/*output size*/); On 2010/03/18 16:34:46, SkyLined wrote: > ...
10 years, 9 months ago (2010-03-18 16:50:41 UTC) #3
SkyLined
10 years, 9 months ago (2010-03-18 17:04:40 UTC) #4
On 2010/03/18 16:50:41, agl wrote:
> http://codereview.chromium.org/1118002/diff/1/16
> File third_party/libpng/pngrutil.c (right):
> 
> http://codereview.chromium.org/1118002/diff/1/16#newcode335
> third_party/libpng/pngrutil.c:335: 0/*output*/, 0/*output size*/);
> On 2010/03/18 16:34:46, SkyLined wrote:
> > Seems to me like the code decompresses twice, once to determine the size of
> the
> > compressed data without storing the decompressed data and once after it
> > determines the size is within limits. This could cause a performance hit, do
> we
> > need to worry about that?
> 
> I agree that this isn't great. It could probably be done better, but I think
we
> want the security fix so we should take this as is, and push a better solution
> upstream.

Okay, let's get this fix in. We should only end up decode each image once, after
we downloaded it or after the site has generated a data: url. Both downloading
and generating a data: url must be a bigger hit on performance than decoding
anyway, so I do not expect this to be noticable.

Powered by Google App Engine
This is Rietveld 408576698