summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorryoon <ryoon@pkgsrc.org>2020-01-20 14:59:48 +0000
committerryoon <ryoon@pkgsrc.org>2020-01-20 14:59:48 +0000
commit48e4435fbe1ab2a714180e83121ff015aed447e8 (patch)
tree0f0c53f860d6d309b71e950b4b758465da48df85 /graphics
parente23237720537bf7a6c965f7070678e5f48456931 (diff)
downloadpkgsrc-48e4435fbe1ab2a714180e83121ff015aed447e8.tar.gz
jpeg: Update to 9d
Changelog: Version 9d 12-Jan-2020 ----------------------- Optimize the optimal Huffman code table generation to produce slightly smaller files. Thank to John Korejwa for suggestion. Note: Requires rebuild of testimgp.jpg. Decoding Huffman: Use default tables if tables are not defined. Thank to Simone Azzalin for report (Motion JPEG), and to Martin Strunz for hint. Add sanity check in optimal Huffman code table generation. Thank to Adam Farley for suggestion. rdtarga.c: use read_byte(), with EOF check, instead of getc() in read_*_pixel(). Thank to Chijin Zhou for cjpeg potential vulnerability report. jmemnobs.c: respect the max_memory_to_use setting in jpeg_mem_available() computation. Thank to Sheng Shu and Dongdong She for djpeg potential vulnerability report. jdarith.c, jdhuff.c: avoid left shift of negative value compiler warning in decode_mcu_AC_refine(). Thank to Indu Bhagat for suggestion. Add x64 (64-bit) platform support, avoid compiler warnings. Thank to Jonathan Potter, Feiyun Wang, and Sheng Shu for suggestion. Adjust libjpeg version specification for pkg-config file. Thank to Chen Chen for suggestion. Restore GIF read and write support from libjpeg version 6a. Thank to Wolfgang Werner (W.W.) Heinz for suggestion. Improve consistency in raw (downsampled) image data processing mode. Thank to Zhongyuan Zhou for hint. Avoid out of bounds array read (AC derived table pointers) in start pass in jdhuff.c. Thank to Peng Li for report. Improve code sanity (jdhuff.c). Thank to Reza Mirzazade farkhani for reports. Add jpegtran -drop option; add options to the crop extension and wipe to fill the extra area with content from the source image region, instead of gray out.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/jpeg/Makefile6
-rw-r--r--graphics/jpeg/distinfo13
-rw-r--r--graphics/jpeg/patches/patch-ag30
-rw-r--r--graphics/jpeg/patches/patch-rdtarga.c37
4 files changed, 23 insertions, 63 deletions
diff --git a/graphics/jpeg/Makefile b/graphics/jpeg/Makefile
index aed83a6f685..8768a9dd822 100644
--- a/graphics/jpeg/Makefile
+++ b/graphics/jpeg/Makefile
@@ -1,11 +1,9 @@
-# $NetBSD: Makefile,v 1.55 2019/03/10 11:22:43 spz Exp $
+# $NetBSD: Makefile,v 1.56 2020/01/20 14:59:48 ryoon Exp $
-DISTNAME= jpegsrc.v9c
+DISTNAME= jpegsrc.v9d
PKGNAME= ${DISTNAME:S/src.v/-/}
CATEGORIES= graphics
MASTER_SITES= http://www.ijg.org/files/
-DIST_SUBDIR= jpeg-9c-v2
-PKGREVISION= 1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.ijg.org/
diff --git a/graphics/jpeg/distinfo b/graphics/jpeg/distinfo
index f3956457598..c43c06bdf70 100644
--- a/graphics/jpeg/distinfo
+++ b/graphics/jpeg/distinfo
@@ -1,11 +1,10 @@
-$NetBSD: distinfo,v 1.24 2019/03/10 11:22:43 spz Exp $
+$NetBSD: distinfo,v 1.25 2020/01/20 14:59:48 ryoon Exp $
-SHA1 (jpeg-9c-v2/jpegsrc.v9c.tar.gz) = 2ce111c8c0ac828a44b13ad28c265e954a342d07
-RMD160 (jpeg-9c-v2/jpegsrc.v9c.tar.gz) = c181cc66d03d96ffcca85724938551bb089fd519
-SHA512 (jpeg-9c-v2/jpegsrc.v9c.tar.gz) = 2b581c60ae401a79bbbe748ff2deeda5acd50bfd2ea22e5926e36d34b9ebcffb6580b0ff48e972c1441583e30e21e1ea821ca0423f9c67ce08a31dffabdbe6b7
-Size (jpeg-9c-v2/jpegsrc.v9c.tar.gz) = 1028134 bytes
+SHA1 (jpegsrc.v9d.tar.gz) = 0bf0fbc3f6f1b5f7d5ad4734eae8cbb148517d6f
+RMD160 (jpegsrc.v9d.tar.gz) = 3c0f971f4b5eb836bb3a7da62db9cabcf1b18a9f
+SHA512 (jpegsrc.v9d.tar.gz) = c425cf413e679e4112b428592e6facc813cadf92e42a6b850c5d348b3dd47b0599e2f4a119d7ff543b762cdcadd42a77ed1429a08874e73f64a54fb869714357
+Size (jpegsrc.v9d.tar.gz) = 1070160 bytes
SHA1 (patch-af) = 925604706574009aacd452dab2d736039b0654e9
-SHA1 (patch-ag) = 46164c00386d1968356f1b61d144bc9168410654
+SHA1 (patch-ag) = bffff318a2db88a0b6c1691549b0f01da5c1906c
SHA1 (patch-jmorecfg.h) = c00f81ba94e2ad6b55ca9892553eedbe4eca3ad1
SHA1 (patch-jpeglib.h) = 635453c5a2b1223ef5af729edcbfcfa3ed78a8b5
-SHA1 (patch-rdtarga.c) = eaec399d67ffb5d33b32131d01a052132bb5bae2
diff --git a/graphics/jpeg/patches/patch-ag b/graphics/jpeg/patches/patch-ag
index 40682782429..eadfb0d756b 100644
--- a/graphics/jpeg/patches/patch-ag
+++ b/graphics/jpeg/patches/patch-ag
@@ -1,10 +1,10 @@
-$NetBSD: patch-ag,v 1.4 2016/02/01 09:22:53 wiz Exp $
+$NetBSD: patch-ag,v 1.5 2020/01/20 14:59:48 ryoon Exp $
Build and install jpegexiforient.
---- Makefile.in.orig 2015-09-10 08:04:54.000000000 +0000
+--- Makefile.in.orig 2019-04-29 14:05:54.000000000 +0000
+++ Makefile.in
-@@ -99,7 +99,7 @@ host_triplet = @host@
+@@ -100,7 +100,7 @@ host_triplet = @host@
target_triplet = @target@
@HAVE_LD_VERSION_SCRIPT_TRUE@am__append_1 = -Wl,--version-script=$(srcdir)/libjpeg.map
bin_PROGRAMS = cjpeg$(EXEEXT) djpeg$(EXEEXT) jpegtran$(EXEEXT) \
@@ -13,7 +13,7 @@ Build and install jpegexiforient.
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/configure.ac
-@@ -184,6 +184,9 @@ rdjpgcom_LDADD = $(LDADD)
+@@ -186,6 +186,9 @@ rdjpgcom_LDADD = $(LDADD)
am_wrjpgcom_OBJECTS = wrjpgcom.$(OBJEXT)
wrjpgcom_OBJECTS = $(am_wrjpgcom_OBJECTS)
wrjpgcom_LDADD = $(LDADD)
@@ -23,7 +23,15 @@ Build and install jpegexiforient.
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
-@@ -219,7 +222,8 @@ am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V
+@@ -226,6 +229,7 @@ am__depfiles_remade = ./$(DEPDIR)/@MEMOR
+ ./$(DEPDIR)/jidctfst.Plo ./$(DEPDIR)/jidctint.Plo \
+ ./$(DEPDIR)/jmemmgr.Plo ./$(DEPDIR)/jpegtran.Po \
+ ./$(DEPDIR)/jquant1.Plo ./$(DEPDIR)/jquant2.Plo \
++ ./$(DEPDIR)/jpegexiforient.Plo ./$(DEPDIR)/jpegexiforient.Po \
+ ./$(DEPDIR)/jutils.Plo ./$(DEPDIR)/rdbmp.Po \
+ ./$(DEPDIR)/rdcolmap.Po ./$(DEPDIR)/rdgif.Po \
+ ./$(DEPDIR)/rdjpgcom.Po ./$(DEPDIR)/rdppm.Po \
+@@ -254,7 +258,8 @@ am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(libjpeg_la_SOURCES) $(cjpeg_SOURCES) $(djpeg_SOURCES) \
@@ -33,7 +41,7 @@ Build and install jpegexiforient.
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
-@@ -461,6 +465,8 @@ jpegtran_SOURCES = jpegtran.c rdswitch.c
+@@ -499,6 +504,8 @@ jpegtran_SOURCES = jpegtran.c rdswitch.c
jpegtran_LDADD = libjpeg.la
rdjpgcom_SOURCES = rdjpgcom.c
wrjpgcom_SOURCES = wrjpgcom.c
@@ -42,7 +50,7 @@ Build and install jpegexiforient.
# Manual pages to install
man_MANS = $(DISTMANS)
-@@ -640,6 +646,9 @@ rdjpgcom$(EXEEXT): $(rdjpgcom_OBJECTS) $
+@@ -684,6 +691,9 @@ rdjpgcom$(EXEEXT): $(rdjpgcom_OBJECTS) $
wrjpgcom$(EXEEXT): $(wrjpgcom_OBJECTS) $(wrjpgcom_DEPENDENCIES) $(EXTRA_wrjpgcom_DEPENDENCIES)
@rm -f wrjpgcom$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(wrjpgcom_OBJECTS) $(wrjpgcom_LDADD) $(LIBS)
@@ -52,11 +60,3 @@ Build and install jpegexiforient.
mostlyclean-compile:
-rm -f *.$(OBJEXT)
-@@ -693,6 +702,7 @@ distclean-compile:
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jidctfst.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jidctint.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmemmgr.Plo@am__quote@
-+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jpegexiforient.Po@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jpegtran.Po@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jquant1.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jquant2.Plo@am__quote@
diff --git a/graphics/jpeg/patches/patch-rdtarga.c b/graphics/jpeg/patches/patch-rdtarga.c
deleted file mode 100644
index f037def55d0..00000000000
--- a/graphics/jpeg/patches/patch-rdtarga.c
+++ /dev/null
@@ -1,37 +0,0 @@
-$NetBSD: patch-rdtarga.c,v 1.1 2019/03/10 11:22:43 spz Exp $
-
-fix for CVE-2018-11813 from
-https://github.com/mozilla/mozjpeg/commit/909a8cfc7bca9b2e6707425bdb74da997e8fa499
-
---- rdtarga.c.orig 2017-09-16 11:12:46.000000000 +0000
-+++ rdtarga.c
-@@ -125,11 +125,10 @@ METHODDEF(void)
- read_non_rle_pixel (tga_source_ptr sinfo)
- /* Read one Targa pixel from the input file; no RLE expansion */
- {
-- register FILE *infile = sinfo->pub.input_file;
- register int i;
-
- for (i = 0; i < sinfo->pixel_size; i++) {
-- sinfo->tga_pixel[i] = (U_CHAR) getc(infile);
-+ sinfo->tga_pixel[i] = (U_CHAR) read_byte(sinfo);
- }
- }
-
-@@ -138,7 +137,6 @@ METHODDEF(void)
- read_rle_pixel (tga_source_ptr sinfo)
- /* Read one Targa pixel from the input file, expanding RLE data as needed */
- {
-- register FILE *infile = sinfo->pub.input_file;
- register int i;
-
- /* Duplicate previously read pixel? */
-@@ -160,7 +158,7 @@ read_rle_pixel (tga_source_ptr sinfo)
-
- /* Read next pixel */
- for (i = 0; i < sinfo->pixel_size; i++) {
-- sinfo->tga_pixel[i] = (U_CHAR) getc(infile);
-+ sinfo->tga_pixel[i] = (U_CHAR) read_byte(sinfo);
- }
- }
-