mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-27 15:33:28 +08:00
0eb0c1bba0
rdgif.c, cderror.h: add sanity check for GIF image dimensions.
Thank to Casper Sun for cjpeg potential vulnerability report.
- Update hash of README (changes not related to license)
- Update indentation in hash file (two spaces)
https://jpegclub.org/reference/reference-sources/
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit b5e36f80a6
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
33 lines
1.0 KiB
Makefile
33 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# libjpeg
|
|
#
|
|
################################################################################
|
|
|
|
LIBJPEG_VERSION = 9e
|
|
LIBJPEG_SITE = http://www.ijg.org/files
|
|
LIBJPEG_SOURCE = jpegsrc.v$(LIBJPEG_VERSION).tar.gz
|
|
LIBJPEG_LICENSE = IJG
|
|
LIBJPEG_LICENSE_FILES = README
|
|
LIBJPEG_INSTALL_STAGING = YES
|
|
LIBJPEG_CPE_ID_VENDOR = ijg
|
|
LIBJPEG_PROVIDES = jpeg
|
|
|
|
define LIBJPEG_REMOVE_USELESS_TOOLS
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,cjpeg djpeg jpegtran rdjpgcom wrjpgcom)
|
|
endef
|
|
|
|
LIBJPEG_POST_INSTALL_TARGET_HOOKS += LIBJPEG_REMOVE_USELESS_TOOLS
|
|
|
|
define LIBJPEG_INSTALL_STAGING_PC
|
|
$(INSTALL) -D -m 0644 package/libjpeg/libjpeg.pc.in \
|
|
$(STAGING_DIR)/usr/lib/pkgconfig/libjpeg.pc
|
|
version=`sed -e '/^PACKAGE_VERSION/!d;s/PACKAGE_VERSION = \(.*\)/\1/' $(@D)/Makefile` ; \
|
|
$(SED) "s/@PACKAGE_VERSION@/$${version}/" $(STAGING_DIR)/usr/lib/pkgconfig/libjpeg.pc
|
|
endef
|
|
|
|
LIBJPEG_POST_INSTALL_STAGING_HOOKS += LIBJPEG_INSTALL_STAGING_PC
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|