pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/libjpeg-turbo



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Sep 15 07:08:10 UTC 2024

Modified Files:
        pkgsrc/graphics/libjpeg-turbo: Makefile distinfo

Log Message:
libjpeg-turbo: updated to 3.0.4

3.0.4

Significant changes relative to 3.0.3:

1. Fixed an issue whereby the CPU usage of the default marker processor in the
decompressor grew exponentially with the number of markers.  This caused an
unreasonable slow-down in `jpeg_read_header()` if an application called
`jpeg_save_markers()` to save markers of a particular type and then attempted
to decompress a JPEG image containing an excessive number of markers of that
type.

2. Hardened the default marker processor in the decompressor to guard against
an issue (exposed by 3.0 beta2[6]) whereby attempting to decompress a
specially-crafted malformed JPEG image (specifically an image with a complete
12-bit-per-sample Start Of Frame segment followed by an incomplete
8-bit-per-sample Start Of Frame segment) using buffered-image mode and input
prefetching caused a segfault if the `fill_input_buffer()` method in the
calling application's custom source manager incorrectly returned `FALSE` in
response to a prematurely-terminated JPEG data stream.

3. Fixed an issue in cjpeg whereby, when generating a 12-bit-per-sample or
16-bit-per-sample lossless JPEG image, specifying a point transform value
greater than 7 resulted in an error ("Invalid progressive/lossless parameters")
unless the `-precision` option was specified before the `-lossless` option.

4. Fixed a regression introduced by 3.0.3[3] that made it impossible for
calling applications to generate 12-bit-per-sample arithmetic-coded lossy JPEG
images using the TurboJPEG API.

5. Fixed an error ("Destination buffer is not large enough") that occurred when
attempting to generate a full-color lossless JPEG image using the TurboJPEG
Java API's `byte[] TJCompressor.compress()` method if the value of
`TJ.PARAM_SUBSAMP` was not `TJ.SAMP_444`.

6. Fixed a segfault in djpeg that occurred if a negative width was specified
with the `-crop` option.  Since the cropping region width was read into an
unsigned 32-bit integer, a negative width was interpreted as a very large
value.  With certain negative width and positive left boundary values, the
bounds checks in djpeg and `jpeg_crop_scanline()` overflowed and did not detect
the out-of-bounds width, which caused a buffer overrun in the upsampling or
color conversion routine.  Both bounds checks now use 64-bit integers to guard
against overflow, and djpeg now checks for negative numbers when it parses the
crop specification from the command line.

7. Fixed an issue whereby the TurboJPEG lossless transformation function and
methods checked the specified cropping region against the source image
dimensions and level of chrominance subsampling rather than the destination
image dimensions and level of chrominance subsampling, which caused some
cropping regions to be unduly rejected when performing 90-degree rotation,
270-degree rotation, transposition, transverse transposition, or grayscale
conversion.

8. Fixed an issue whereby the TurboJPEG lossless transformation function and
methods did not honor `TJXOPT_COPYNONE`/`TJTransform.OPT_COPYNONE` unless it
was specified for all lossless transforms.


To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 pkgsrc/graphics/libjpeg-turbo/Makefile
cvs rdiff -u -r1.29 -r1.30 pkgsrc/graphics/libjpeg-turbo/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/libjpeg-turbo/Makefile
diff -u pkgsrc/graphics/libjpeg-turbo/Makefile:1.36 pkgsrc/graphics/libjpeg-turbo/Makefile:1.37
--- pkgsrc/graphics/libjpeg-turbo/Makefile:1.36 Sun Aug 25 06:18:51 2024
+++ pkgsrc/graphics/libjpeg-turbo/Makefile      Sun Sep 15 07:08:10 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.36 2024/08/25 06:18:51 wiz Exp $
+# $NetBSD: Makefile,v 1.37 2024/09/15 07:08:10 adam Exp $
 
-DISTNAME=      libjpeg-turbo-3.0.3
+DISTNAME=      libjpeg-turbo-3.0.4
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=libjpeg-turbo/}
 

Index: pkgsrc/graphics/libjpeg-turbo/distinfo
diff -u pkgsrc/graphics/libjpeg-turbo/distinfo:1.29 pkgsrc/graphics/libjpeg-turbo/distinfo:1.30
--- pkgsrc/graphics/libjpeg-turbo/distinfo:1.29 Thu May  9 09:55:50 2024
+++ pkgsrc/graphics/libjpeg-turbo/distinfo      Sun Sep 15 07:08:10 2024
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.29 2024/05/09 09:55:50 adam Exp $
+$NetBSD: distinfo,v 1.30 2024/09/15 07:08:10 adam Exp $
 
-BLAKE2s (libjpeg-turbo-3.0.3.tar.gz) = 4ef33e62bad8a80836678109796cfb9f480389647a98818f32e4c283820f0ebc
-SHA512 (libjpeg-turbo-3.0.3.tar.gz) = 46c44be837654e201d11bbf8d9fbb35b775a7d4bf653e9e709279437b10d5c8b0825ece4c8ee33f66689c263234fa2b08240fb5f5ba80e76e03891da8f64eda8
-Size (libjpeg-turbo-3.0.3.tar.gz) = 2832827 bytes
+BLAKE2s (libjpeg-turbo-3.0.4.tar.gz) = 93f1c3851cd3af6fa1bdd92a626dfb20d24f84459f4ed5471c1791d72e0033f6
+SHA512 (libjpeg-turbo-3.0.4.tar.gz) = f43e1b6b9d048e29e381796c71e1c34a04c0f1c52c1f462db9f9930cfc75d69a50861be2570a6a4adc26a4183b6601300fd9d5553c06bc042f0d32fc1e408ed9
+Size (libjpeg-turbo-3.0.4.tar.gz) = 2400356 bytes
 SHA1 (patch-jpeglib.h) = 22f69b5fed1882c33f4a8a6e42b8aca5ed195de3
 SHA1 (patch-simd_arm__aarch32_jsimd.c) = 0d35d6f0727709d4e894202a3a297fc66383c377
 SHA1 (patch-simd_arm__aarch64_jsimd.c) = 76c5e81403f70a8ea8bca8ae2266066fff5ec6f9



Home | Main Index | Thread Index | Old Index