Closed
Bug 504805
Opened 15 years ago
Closed 15 years ago
Update libpng to version 1.2.40
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
VERIFIED
FIXED
mozilla1.9.3a1
People
(Reporter: glennrp+bmo, Assigned: glennrp+bmo)
References
()
Details
Attachments
(3 files, 10 obsolete files)
Libpng-1.2.38 has been released. It's mostly cosmetic, but for mozilla it provides defense against bad iCCP chunks when color management is not being used.
Assignee | ||
Comment 1•15 years ago
|
||
Attachment #389118 -
Flags: superreview?(vladimir)
Attachment #389118 -
Flags: review?(joe)
Assignee | ||
Updated•15 years ago
|
Blocks: CVE-2010-0205
Comment 2•15 years ago
|
||
Comment on attachment 389118 [details] [diff] [review]
Update libpng in trunk to version 1.2.38 (v0)
No sr required under the new SR rules: http://www.mozilla.org/hacking/reviewers.html
Attachment #389118 -
Flags: superreview?(vladimir)
Attachment #389118 -
Flags: review?(joe)
Attachment #389118 -
Flags: review+
Updated•15 years ago
|
Keywords: checkin-needed
I've tried this patch for my build (Mac OS X 10.5.7, Intel), but I get this error.
Assignee | ||
Comment 4•15 years ago
|
||
Comment on attachment 389118 [details] [diff] [review]
Update libpng in trunk to version 1.2.38 (v0)
I botched the merge of png.h from libpng-1.2.38 with the APNG support. Will try again today.
Attachment #389118 -
Attachment is obsolete: true
Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•15 years ago
|
Attachment #389118 -
Flags: review+
Assignee | ||
Comment 5•15 years ago
|
||
Fixed merge of png.h with APNG stuff.
Updated•15 years ago
|
Flags: blocking1.9.2?
Comment 6•15 years ago
|
||
Glenn, have you tested APNGs with this patch? I just see a lot of removal of APNG support.
Assignee | ||
Comment 7•15 years ago
|
||
Most of the APNG stuff already in the trunk is not touched. Some #defines are relocated in pngconf.h, and there's a little change involving BLEND_OP included in the libpng patch.
No, I have not tested because I don't have access to the try-server and firefox won't build (patched or not) on platforms I have access to. I have to rely on someone who does have access to the try-server for testing.
Comment 8•15 years ago
|
||
Glenn - I filed bug 505757 to get you tryserver access. ;-)
Comment 9•15 years ago
|
||
And I've pushed v1 to try :)
Comment 10•15 years ago
|
||
Lots of build failures. :( http://tinderbox.mozilla.org/showbuilds.cgi?tree=MozillaTry
Assignee | ||
Comment 11•15 years ago
|
||
(In reply to comment #10)
> Lots of build failures. :(
Do you have log files I can look at?
Meanwhile I think I can work out a local testing method for APNG-enabled libpng, but give me a few days.
Assignee | ||
Comment 12•15 years ago
|
||
(In reply to comment #10)
> Lots of build failures. :(
> http://tinderbox.mozilla.org/showbuilds.cgi?tree=MozillaTry
There was a mixup, png.h was from libpng-1.2.37 instead of libpng-1.2.38.
Assignee | ||
Comment 13•15 years ago
|
||
Libpng-1.2.39 has been released. Here is the update to 1.2.39 from 1.2.35, which is what is in the trunk.
Attachment #389295 -
Attachment is obsolete: true
Assignee | ||
Updated•15 years ago
|
Summary: Update libpng to version 1.2.38 → Update libpng to version 1.2.39
Assignee | ||
Comment 14•15 years ago
|
||
Removed a stray "*/" from pngset.c
Attachment #394573 -
Attachment is obsolete: true
Assignee | ||
Comment 15•15 years ago
|
||
Relocated a misplaced #define in pngconf.h and fixed a typo in mozpngconf.h
Attachment #394707 -
Attachment is obsolete: true
Assignee | ||
Comment 16•15 years ago
|
||
Relocated a misplaced #endif.
Attachment #394733 -
Attachment is obsolete: true
Assignee | ||
Updated•15 years ago
|
Attachment #394800 -
Flags: review?(joe)
Assignee | ||
Comment 17•15 years ago
|
||
Comment on attachment 394800 [details] [diff] [review]
Update libpng in trunk to version 1.2.39 (v3)
The merge with png.h from libpng-1.2.39 is still not quite right. Cancelling request for review.
Attachment #394800 -
Flags: review?(joe)
Assignee | ||
Comment 18•15 years ago
|
||
This patch corrects the merging of png.h with libpng-1.2.39, and relocates the acTL chunk in output PNG files immediately after the IHDR chunk so APNG files can be quickly recognized.
Attachment #394800 -
Attachment is obsolete: true
Assignee | ||
Comment 19•15 years ago
|
||
The v4 patch left some litter, an unwanted working file (png.h_diff). It's removed from v5.
Attachment #395306 -
Attachment is obsolete: true
Assignee | ||
Updated•15 years ago
|
Attachment #395313 -
Flags: review?(joe)
Comment 20•15 years ago
|
||
Before I review this, can you post it to the try server to ensure that everything is good?
Assignee | ||
Comment 21•15 years ago
|
||
(In reply to comment #20)
> Before I review this, can you post it to the try server to ensure that
> everything is good?
Yes, I can. The one I put in this morning did not go well, so I've got to
check the logs now...
Assignee | ||
Updated•15 years ago
|
Attachment #395313 -
Flags: review?(joe)
Assignee | ||
Comment 22•15 years ago
|
||
Try Server builds are at
https://build.mozilla.org/tryserver-builds/glennrp@gmail.com-v6/
Attachment #395313 -
Attachment is obsolete: true
Assignee | ||
Updated•15 years ago
|
Attachment #395686 -
Flags: review?(joe)
Assignee | ||
Comment 23•15 years ago
|
||
Libpng-1.2.40 is out. The differences from 1.2.39 are trivial.
Attachment #400070 -
Flags: review?(joe)
Assignee | ||
Updated•15 years ago
|
Summary: Update libpng to version 1.2.39 → Update libpng to version 1.2.40
Assignee | ||
Updated•15 years ago
|
Attachment #395686 -
Attachment is obsolete: true
Attachment #395686 -
Flags: review?(joe)
Assignee | ||
Comment 24•15 years ago
|
||
Successful tryserver builds for the v7 patch are at https://build.mozilla.org/tryserver-builds/glennrp@gmail.com-libpng-1.2.40-v7/
Assignee | ||
Updated•15 years ago
|
Attachment #400070 -
Attachment is obsolete: true
Attachment #400070 -
Flags: review?(joe)
Assignee | ||
Comment 25•15 years ago
|
||
Comment on attachment 400070 [details] [diff] [review]
Update libpng in trunk to version 1.2.40 (v7)
Checkin of bug #435296 has cause a little bit-rot. I'm testing a v8 patch now.
Assignee | ||
Comment 26•15 years ago
|
||
Fixed bit-rot in nsPNGDecoder.cpp
Successful TryServer results are at
http://build.mozilla.org/tryserver-builds/glennrp@gmail.com-bug504805-libpng-1.2.40-v8
Attachment #400420 -
Flags: review?(joe)
Updated•15 years ago
|
Flags: blocking1.9.2? → blocking1.9.2-
Assignee | ||
Updated•15 years ago
|
Comment 27•15 years ago
|
||
Joe, ping?
Assignee | ||
Updated•15 years ago
|
Attachment #400420 -
Flags: review?(vladimir)
Comment 28•15 years ago
|
||
Glenn, I never checked -- did this pass all the unittests on tryserver?
Assignee | ||
Comment 29•15 years ago
|
||
@joe, there are a few sporadic warnings, but I get them whether I apply the patch or not, and they don't show up on all platforms. I don't know how to relate them to anything.
Comment 30•15 years ago
|
||
Generally, if you do a search for the failure you see, and you see a bug open about it, it can safely be ignored as "not impacted by this code." (i.e., it's a known intermittent failure.)
Those bugs are all tagged with [orange] in the whiteboard, so doing a search for that will show the list of bugs.
Assignee | ||
Comment 31•15 years ago
|
||
New TryServer builds are at
https://build.mozilla.org/tryserver-builds/glennrp@gmail.com-bug504805-bug517713-repeat/
There are still several sporadic unittest warnings that seem unrelated to this patch (they sometimes appear, whether or not the patch is applied). As you can probably guess from the URL, I also applied the patch from bug #517713 to these builds.
Comment 32•15 years ago
|
||
In order to spark interest to this forgotten bug, here's some tests:
http://img18.imageshack.us/img18/6787/mode0milk.png
http://img10.imageshack.us/img10/233/mode2gold.png
http://img132.imageshack.us/img132/4329/mode3comm.png
http://img132.imageshack.us/img132/4936/mode6gears.png
Currently Firefox fails all of them.
Assignee | ||
Updated•15 years ago
|
Attachment #400420 -
Flags: review?(tor)
Comment 33•15 years ago
|
||
Comment on attachment 400420 [details] [diff] [review]
Update libpng in trunk to version 1.2.40 (v8)
Semi-reviewed, mostly rubber-stamp. Sorry it took so long.
Glenn: Can you do me one more favour and make sure this still applies to mozilla-central? I'll then commit it.
Attachment #400420 -
Flags: review?(vladimir)
Attachment #400420 -
Flags: review?(tor)
Attachment #400420 -
Flags: review?(joe)
Attachment #400420 -
Flags: review+
Assignee | ||
Comment 34•15 years ago
|
||
Joe: OK, I've submitted a tryserver run that tests both this and my patch for
bug #517713.
Assignee | ||
Comment 35•15 years ago
|
||
New successful tryserver builds from mozilla-central checked out at 1600 EST today are at
https://build.mozilla.org/tryserver-builds/glennrp@gmail.com-504805-v8-517713-v2-10Nov/
The unit tests seem to be failing for reasons unrelated to this patch (the previous run by another user is showing the same failures).
Comment 36•15 years ago
|
||
So there were no changes required to attachment 400420 [details] [diff] [review] to make it apply to mozilla-central? (If there were, can you please attach a new version?)
Assignee | ||
Comment 37•15 years ago
|
||
Right, I used the "v8" patch (attachment #400420 [details] [diff] [review]) along with the "v2" patch from bug #517713.
Comment 38•15 years ago
|
||
Patch applied without issue. I left bug 517713 to itself, as that patch has not been reviewed yet.
http://hg.mozilla.org/mozilla-central/rev/2253ef0bcfca
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Comment 39•15 years ago
|
||
Comment on attachment 400420 [details] [diff] [review]
Update libpng in trunk to version 1.2.40 (v8)
This fixes a number of other PNG/APNG-related bugs, so would be good to have on 1.9.2.
Attachment #400420 -
Flags: approval1.9.2?
Comment 40•15 years ago
|
||
I cannot disagree more strenuously. 1.9.2 should be on the path to completion, not unnecessary code churn. If there are specific bugs this fixes that we'd rather not ship with 1.9.2, then let's create separate bugs, with separate, contained, fixes for them.
Updated•15 years ago
|
Attachment #400420 -
Flags: approval1.9.2?
Comment 41•15 years ago
|
||
Comment on attachment 400420 [details] [diff] [review]
Update libpng in trunk to version 1.2.40 (v8)
Very well. I will nom patches from other bugs.
Comment 42•15 years ago
|
||
All four tests from comment #32 work fine in Minefield now.
Assignee | ||
Comment 43•15 years ago
|
||
(In reply to comment #42)
> All four tests from comment #32 work fine in Minefield now.
Yes, they work for me now as well, on WinXP. Marking VERIFIED.
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 44•15 years ago
|
||
The tests from comment #32 all fail on Firefox 3.9.3 which was just now pushed with Ubuntu 10.4 (Gecko/20100423).
You need to log in
before you can comment on or make changes to this bug.
Description
•