head 1.2; access; symbols pkgsrc-2026Q2:1.1.0.2 pkgsrc-2026Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2026.06.30.20.07.32; author adam; state dead; branches; next 1.1; commitid 9cKu7YknkQaHqRLG; 1.1 date 2026.05.31.09.40.08; author spz; state Exp; branches; next ; commitid LoCGmN0QhqHnUWHG; desc @@ 1.2 log @libjpeg-turbo: updated to 3.2.0 3.2.0 Fixed a regression introduced by 3.2 beta1[9] that broke Arm64EC Windows builds. Hardened the PNG writer (which is used by djpeg and tj3SaveImage*()) against applications that may erroneously attempt to write sample values that are out of range for the specified output data precision. This could have caused a buffer overrun in the PNG writer's rescale array if the output data precision was not 8 or 16 bits. The buffer overrun did not likely pose a security risk, since tj3SaveImage*() is not exposed to arbitrary external input data and since a caller that abused the API in the aforementioned manner could never work properly. Hardened the libjpeg API against hypothetical applications that may erroneously call jpeg_crop_scanline() with buffered-image mode and raw data output enabled. jpeg_crop_scanline() does not work with raw data output, but due to an oversight, it did not throw an error if both buffered-image mode and raw data output were enabled. If a hypothetical application aborted a normal decompression operation without reading any scanlines, started a new decompression operation using the same libjpeg instance with buffered-image mode and raw data output enabled, then called jpeg_crop_scanline() with arguments that would have caused any of the component planes to be cropped to a width of 1 sample, jpeg_crop_scanline() would have used freed memory. However, this did not likely pose a security risk, since an application that abused the API in the aforementioned manner could never work properly. Fixed a buffer overrun and subsequent segfault in jpegtran that occurred when attempting to use the -crop and -trim options to expand the width of an image narrower than one iMCU, discard partial iMCUs, and fill each block in the expanded region with the DC coefficient of the nearest block in the input image ("flatten.") Similarly, fixed an infinite loop that occurred when attempting to use the -crop and -trim options to expand the width of an image narrower than one iMCU, discard partial iMCUs, and fill the expanded region with repeated reflections of the input image ("reflect.") When the only iMCU column in the input image is partial and partial iMCUs are trimmed, the flatten and reflect extensions cannot work properly, so jpegtran now throws an error if that is the case. These issues were confined to the jpegtran application and thus did not pose a security risk. @ text @$NetBSD: patch-simd_CMakeLists.txt,v 1.1 2026/05/31 09:40:08 spz Exp $ make the package build for cpu-types not supporting simd: https://github.com/libjpeg-turbo/libjpeg-turbo/commit/7cdbf9144d40d68d97c498f54d d88a68aee4e36d this patch can probably be removed at the next version update --- simd/CMakeLists.txt.orig 2026-05-31 09:11:17.483951428 +0000 +++ simd/CMakeLists.txt @@@@ -3,6 +3,7 @@@@ macro(simd_fail message) message(FATAL_ERROR "${message}.") else() message(WARNING "${message}. Performance will suffer.") + set(WITH_SIMD 0) set(WITH_SIMD 0 PARENT_SCOPE) endif() endmacro() @ 1.1 log @build fix for cpu-types not supporting simd taken from https://github.com/libjpeg-turbo/libjpeg-turbo/commit/7cdbf9144d40d68d97c498f54dd88a68aee4e36d Fixes PR pkg/60301 @ text @d1 1 a1 1 $NetBSD$ @