fd50e0f93f
- Fix CVE-2020-15503: LibRaw before 0.20-RC1 lacks a thumbnail size range check. This affects decoders/unpack_thumb.cpp, postprocessing/mem_image.cpp, and utils/thumb_utils.cpp. For example, malloc(sizeof(libraw_processed_image_t)+T.tlength) occurs without validating T.tlength. - zlib is an optional dependency sinceb63f017b06
Also update indentation in hash file (two spaces) as well as README.md hash, no license changes: -d1975cb0e0
-d38361b76e
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
52 lines
1.3 KiB
Makefile
52 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# libraw
|
|
#
|
|
################################################################################
|
|
|
|
LIBRAW_VERSION = 0.20.0
|
|
LIBRAW_SOURCE = LibRaw-$(LIBRAW_VERSION).tar.gz
|
|
LIBRAW_SITE = http://www.libraw.org/data
|
|
LIBRAW_INSTALL_STAGING = YES
|
|
LIBRAW_CONF_OPTS += \
|
|
--disable-examples \
|
|
--disable-openmp
|
|
LIBRAW_LICENSE = LGPL-2.1 or CDDL-1.0
|
|
LIBRAW_LICENSE_FILES = LICENSE.LGPL LICENSE.CDDL README.md
|
|
LIBRAW_DEPENDENCIES = host-pkgconf
|
|
LIBRAW_CXXFLAGS = $(TARGET_CXXFLAGS)
|
|
LIBRAW_CONF_ENV = CXXFLAGS="$(LIBRAW_CXXFLAGS)"
|
|
|
|
ifeq ($(BR2_PACKAGE_JASPER),y)
|
|
LIBRAW_CONF_OPTS += --enable-jasper
|
|
LIBRAW_DEPENDENCIES += jasper
|
|
# glibc prior to 2.18 only defines constants such as SIZE_MAX or
|
|
# INT_FAST32_MAX for C++ code if __STDC_LIMIT_MACROS is defined
|
|
LIBRAW_CXXFLAGS += -D__STDC_LIMIT_MACROS
|
|
else
|
|
LIBRAW_CONF_OPTS += --disable-jasper
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
LIBRAW_CONF_OPTS += --enable-jpeg
|
|
LIBRAW_DEPENDENCIES += jpeg
|
|
else
|
|
LIBRAW_CONF_OPTS += --disable-jpeg
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LCMS2),y)
|
|
LIBRAW_CONF_OPTS += --enable-lcms
|
|
LIBRAW_DEPENDENCIES += lcms2 host-pkgconf
|
|
else
|
|
LIBRAW_CONF_OPTS += --disable-lcms
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
LIBRAW_CONF_OPTS += --enable-zlib
|
|
LIBRAW_DEPENDENCIES += zlib
|
|
else
|
|
LIBRAW_CONF_OPTS += --disable-zlib
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|