RESOLVED FIXED 13975
[GDK] Use system-provided libjpeg and libpng
https://bugs.webkit.org/show_bug.cgi?id=13975
Summary [GDK] Use system-provided libjpeg and libpng
Alp Toker
Reported Saturday, June 2, 2007 4:53:25 AM UTC
We should avoid using the bundled libjpeg and libpng sources in favour of those provided by the system so that we can reduce memory use and benefit from security updates made to these code bases independently of the WebKit code base.
Attachments
[GDK] Link to external libjpeg (3.56 KB, patch)
2007-06-19 20:54 PDT, Alp Toker
no flags
[GDK] Link to external libjpeg and libpng (4.48 KB, patch)
2007-06-19 21:09 PDT, Alp Toker
mrowe: review+
Kevin Ollivier
Comment 1 Sunday, June 17, 2007 8:03:59 PM UTC
Created attachment 15090 Sorry for the large patch! :-) This moves the libjpeg sources into a libjpeg subdir of image-decoders/jpeg directory and updates the GDK port makefiles. This way, JPEGImageDecoder.cpp can use a different libjpeg implementation simply by adding it to the include/lib dirs.
Mark Rowe (bdash)
Comment 2 Monday, June 18, 2007 11:45:30 PM UTC
Do we really need to keep libjpeg in the WebKit SVN?
Kevin Ollivier
Comment 3 Tuesday, June 19, 2007 12:09:01 AM UTC
Personally, I'm fine with removing it, I just did it this way as I'm not familiar with how to fix the GDK port build system once WebKit's libjpeg is removed, and I wasn't sure if anyone working on the GDK port would have time to deal with this in the near future.
Alp Toker
Comment 4 Wednesday, June 20, 2007 4:54:31 AM UTC
Created attachment 15134 [details] [GDK] Link to external libjpeg This patch updates the Gdk build files to link to the libjpeg shared library. The bundled libjpeg sources should be removed from the SVN repository when committing this change. So, after the changes, WebCore/platform/image-decoders/jpeg/ should contain only two files: JPEGImageDecoder.cpp JPEGImageDecoder.h
Alp Toker
Comment 5 Wednesday, June 20, 2007 5:09:42 AM UTC
Created attachment 15135 [details] [GDK] Link to external libjpeg and libpng This patch updates the Gdk build files to link to the libjpeg and libpng shared libraries. The bundled libjpeg and libpng sources should be removed from the SVN repository when committing this change. So, after the changes, WebCore/platform/image-decoders/jpeg/ should contain only two files: JPEGImageDecoder.cpp JPEGImageDecoder.h And WebCore/platform/image-decoders/png/ should contain only two files: PNGImageDecoder.cpp PNGImageDecoder.h
Charles Gaudette
Comment 6 Thursday, June 21, 2007 12:04:50 AM UTC
When this gets done, it should clear-up http://bugs.webkit.org/show_bug.cgi?id=12058 also. Right?
Kevin Ollivier
Comment 7 Thursday, June 21, 2007 12:13:11 AM UTC
yes, libpng will be completely removed from WebKit sources. Of course, it's up to each port to make sure they're using an updated libpng without known vulnerabilities. Also, should I produce a new patch removing libjpeg and libpng from sources? That plus Alp's latest patch will completely take care of the issue.
Kevin Ollivier
Comment 8 Thursday, June 21, 2007 12:13:57 AM UTC
Comment on attachment 15090 We've decided to remove, not move the sources, so this patch is obsolete.
Mark Rowe (bdash)
Comment 9 Monday, June 25, 2007 1:58:12 PM UTC
Landed in r23763.
Note You need to log in before you can comment on or make changes to this bug.