initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
From ac286a71ed78429e16c612161251b9ea90ccd431 Mon Sep 17 00:00:00 2001
|
||||
From: Paul <paul@claws-mail.org>
|
||||
Date: Sun, 23 May 2021 12:16:40 +0100
|
||||
Subject: [PATCH] harden link checker before accepting click
|
||||
|
||||
[Retrieved from:
|
||||
https://git.claws-mail.org/?p=claws.git;a=commit;h=ac286a71ed78429e16c612161251b9ea90ccd431]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
src/textview.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/textview.c b/src/textview.c
|
||||
index 62ad46eaf..3cdf5d911 100644
|
||||
--- a/src/textview.c
|
||||
+++ b/src/textview.c
|
||||
@@ -2885,7 +2885,7 @@ gboolean textview_uri_security_check(TextView *textview, ClickableText *uri)
|
||||
gboolean retval = TRUE;
|
||||
|
||||
if (is_uri_string(uri->uri) == FALSE)
|
||||
- return TRUE;
|
||||
+ return FALSE;
|
||||
|
||||
visible_str = textview_get_visible_uri(textview, uri);
|
||||
if (visible_str == NULL)
|
||||
@@ -2922,6 +2922,8 @@ gboolean textview_uri_security_check(TextView *textview, ClickableText *uri)
|
||||
if (aval == G_ALERTALTERNATE)
|
||||
retval = TRUE;
|
||||
}
|
||||
+ if (strlen(uri->uri) > get_uri_len(uri->uri))
|
||||
+ retval = FALSE;
|
||||
|
||||
g_free(visible_str);
|
||||
|
||||
--
|
||||
2.25.1
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_SYLPHEED
|
||||
bool "sylpheed"
|
||||
depends on BR2_PACKAGE_LIBGTK2
|
||||
help
|
||||
lightweight and user-friendly e-mail client.
|
||||
|
||||
http://sylpheed.sraoss.jp/en/
|
||||
@@ -0,0 +1,4 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 0d6bc5eb46f5d0a463757c62bc80b00d219b294b3c3662840e4540f6db2e3e49 sylpheed-3.7.0.tar.xz
|
||||
sha256 c38aee9e3c8c4d5d594ff548a1be05453023016d6286931f6512db215ec1fd42 COPYING
|
||||
sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 COPYING.LIB
|
||||
@@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
#
|
||||
# sylpheed
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SYLPHEED_VERSION_MAJOR = 3.7
|
||||
SYLPHEED_VERSION = $(SYLPHEED_VERSION_MAJOR).0
|
||||
SYLPHEED_SOURCE = sylpheed-$(SYLPHEED_VERSION).tar.xz
|
||||
SYLPHEED_SITE = http://sylpheed.sraoss.jp/sylpheed/v$(SYLPHEED_VERSION_MAJOR)
|
||||
SYLPHEED_LICENSE = GPL-2.0+ (executables), LGPL-2.1+ (library, attachment plugin)
|
||||
SYLPHEED_LICENSE_FILES = COPYING COPYING.LIB
|
||||
SYLPHEED_CPE_ID_VENDOR = sylpheed_project
|
||||
SYLPHEED_CONF_OPTS = --disable-gtkspell --disable-gpgme
|
||||
SYLPHEED_DEPENDENCIES = host-pkgconf libgtk2
|
||||
|
||||
# 0001-harden-link-checker-before-accepting-click.patch
|
||||
SYLPHEED_IGNORE_CVES += CVE-2021-37746
|
||||
|
||||
# Remove the -I$(includedir) from the Makefiles
|
||||
# because it refers to the host /usr/include.
|
||||
define SYLPHEED_PRECONFIGURE
|
||||
for i in $$(find $(@D) -name "Makefile*"); do \
|
||||
sed -i 's:-I$$(includedir)::g' $$i; \
|
||||
done
|
||||
endef
|
||||
|
||||
SYLPHEED_PRE_CONFIGURE_HOOKS += SYLPHEED_PRECONFIGURE
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
SYLPHEED_DEPENDENCIES += openssl
|
||||
SYLPHEED_CONF_OPTS += --enable-ssl
|
||||
else
|
||||
SYLPHEED_CONF_OPTS += --disable-ssl
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user