Skip to content
Snippets Groups Projects
Commit 15608455 authored by Celeste's avatar Celeste Committed by Natanael Copa
Browse files

community/libraw: upgrade to 0.21.2

parent 51a4442a
No related branches found
No related tags found
1 merge request!57584community/libraw: upgrade to 0.21.2
Pipeline #202370 skipped
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libraw
pkgver=0.21.1
pkgrel=2
pkgver=0.21.2
pkgrel=0
pkgdesc="Library for reading RAW files obtained from digital photo cameras"
url="https://www.libraw.org/"
arch="all"
license="CDDL-1.0 OR LGPL-2.1-only"
makedepends="lcms2-dev"
subpackages="$pkgname-dev $pkgname-tools"
source="https://www.libraw.org/data/LibRaw-$pkgver.tar.gz
CVE-2023-1729.patch
"
source="https://www.libraw.org/data/LibRaw-$pkgver.tar.gz"
builddir="$srcdir"/LibRaw-$pkgver
options="!check" # no tests
......@@ -65,6 +63,5 @@ tools() {
}
sha512sums="
8d11df0be2af5fd8a8251f150ccd59103319606f52effff541ee43e97ceb64f1a00a02bba7b730aedd0c1c705c1e465793c8a2a52769712c1102af7f5534dd5d LibRaw-0.21.1.tar.gz
291f22c501bea2d82ec0f7cc387cae7c5a4ba23ba553f1c94966c03d2a7e2d2859b888ec1b8b5bc90bcdd777dede1974be97fa4050d2ca21ad39b91c29440268 CVE-2023-1729.patch
ba7839d8eb5f999982c7b89f89f63387d7fee82054d7edcc2698924e268559b561230e329a0c669bd6f7c075983da6c054a6d63fad49ab3c1e2e9edc653b2bae LibRaw-0.21.2.tar.gz
"
Patch-Source: https://github.com/LibRaw/LibRaw/commit/9ab70f6dca19229cb5caad7cc31af4e7501bac93
https://github.com/LibRaw/LibRaw/issues/557
--
From 9ab70f6dca19229cb5caad7cc31af4e7501bac93 Mon Sep 17 00:00:00 2001
From: Alex Tutubalin <lexa@lexa.ru>
Date: Sat, 14 Jan 2023 18:32:59 +0300
Subject: [PATCH] do not set shrink flag for 3/4 component images
---
src/preprocessing/raw2image.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/preprocessing/raw2image.cpp b/src/preprocessing/raw2image.cpp
index e65e2ad7..702cf290 100644
--- a/src/preprocessing/raw2image.cpp
+++ b/src/preprocessing/raw2image.cpp
@@ -43,6 +43,8 @@ void LibRaw::raw2image_start()
// adjust for half mode!
IO.shrink =
+ !imgdata.rawdata.color4_image && !imgdata.rawdata.color3_image &&
+ !imgdata.rawdata.float4_image && !imgdata.rawdata.float3_image &&
P1.filters &&
(O.half_size || ((O.threshold || O.aber[0] != 1 || O.aber[2] != 1)));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment