2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2004-10-08 22:08:26 +02:00
|
|
|
#
|
|
|
|
# wget
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2004-10-08 22:08:26 +02:00
|
|
|
|
2018-05-08 17:43:02 +02:00
|
|
|
WGET_VERSION = 1.19.5
|
wget: security bump to version 1.19.2
Fixes the following security issues:
CVE-2017-13089: The http.c:skip_short_body() function is called in some
circumstances, such as when processing redirects. When the response is sent
chunked, the chunk parser uses strtol() to read each chunk's length, but
doesn't check that the chunk length is a non-negative number. The code then
tries to skip the chunk in pieces of 512 bytes by using the MIN() macro, but
ends up passing the negative chunk length to connect.c:fd_read(). As
fd_read() takes an int argument, the high 32 bits of the chunk length are
discarded, leaving fd_read() with a completely attacker controlled length
argument.
CVE-2017-13090: The retr.c:fd_read_body() function is called when processing
OK responses. When the response is sent chunked, the chunk parser uses
strtol() to read each chunk's length, but doesn't check that the chunk
length is a non-negative number. The code then tries to read the chunk in
pieces of 8192 bytes by using the MIN() macro, but ends up passing the
negative chunk length to retr.c:fd_read(). As fd_read() takes an int
argument, the high 32 bits of the chunk length are discarded, leaving
fd_read() with a completely attacker controlled length argument. The
attacker can corrupt malloc metadata after the allocated buffer.
Drop now upstreamed patch and change to .tar.lz as .tar.xz is no longer
available.
Also add a hash for the license file while we're at it.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2017-10-27 14:02:08 +02:00
|
|
|
WGET_SOURCE = wget-$(WGET_VERSION).tar.lz
|
2010-02-18 18:51:51 +01:00
|
|
|
WGET_SITE = $(BR2_GNU_MIRROR)/wget
|
2014-12-10 01:40:06 +01:00
|
|
|
WGET_DEPENDENCIES = host-pkgconf
|
2017-03-30 15:43:33 +02:00
|
|
|
WGET_LICENSE = GPL-3.0+
|
2012-08-13 15:14:29 +02:00
|
|
|
WGET_LICENSE_FILES = COPYING
|
2004-10-08 22:08:26 +02:00
|
|
|
|
2011-10-15 05:07:33 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
2016-11-08 19:36:41 +01:00
|
|
|
WGET_CONF_OPTS += --with-ssl=gnutls
|
2015-03-31 09:21:57 +02:00
|
|
|
WGET_DEPENDENCIES += gnutls
|
2016-11-08 19:36:41 +01:00
|
|
|
else ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
WGET_CONF_OPTS += --with-ssl=openssl
|
2015-03-31 09:21:57 +02:00
|
|
|
WGET_DEPENDENCIES += openssl
|
2016-11-08 19:36:41 +01:00
|
|
|
else
|
|
|
|
WGET_CONF_OPTS += --without-ssl
|
2005-02-10 04:06:39 +01:00
|
|
|
endif
|
2010-02-18 18:51:51 +01:00
|
|
|
|
2018-05-01 22:40:34 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBIDN2),y)
|
|
|
|
WGET_CONF_OPTS += --with-libidn
|
|
|
|
WGET_DEPENDENCIES += libidn2
|
|
|
|
else
|
|
|
|
WGET_CONF_OPTS += --without-libidn
|
|
|
|
endif
|
|
|
|
|
2014-07-01 13:28:33 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBUUID),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
WGET_DEPENDENCIES += util-linux
|
2014-07-01 13:28:33 +02:00
|
|
|
endif
|
|
|
|
|
2017-10-27 14:18:58 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
WGET_CONF_OPTS += --with-zlib
|
|
|
|
WGET_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
WGET_CONF_OPTS += --without-zlib
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|