fuzzel: update to 1.11.0

This commit is contained in:
tranzystorekk 2024-09-09 09:40:25 +02:00
parent 7ffbd5ed6c
commit 1c2e64ed57
2 changed files with 32 additions and 4 deletions

View File

@ -0,0 +1,28 @@
From b6b9d5aeffd5166dd9e5c4dc7e89c28c97c0b9d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= <daniel@ekloef.se>
Date: Mon, 9 Sep 2024 11:26:18 +0200
Subject: [PATCH] render: don't pass a negative radius to
fill_rounded_rectangle()
If the border *size* is bigger than the border *radius*, we ended up
passing a negative radius to fill_rounded_rectangle().
Since the radius parameter in fill_rounded_rectangle() is an uint16_t,
we ended up passing a *very large* value, e.g. 65535. This resulted in
an integer overflow when calculating the number of pixman rectangles
to use, leading to a crash when calling
pixman_image_fill_rectangles().
diff --git a/render.c b/render.c
index 9f8106d..041c0c9 100644
--- a/render.c
+++ b/render.c
@@ -205,7 +205,7 @@ render_background(const struct render *render, struct buffer *buf)
PIXMAN_OP_SRC, bg_img, &bg, brd_sz_scaled, brd_sz_scaled,
w-(brd_sz_scaled*2),
h-(brd_sz_scaled*2),
- brd_rad_scaled - brd_sz_scaled);
+ max(brd_rad_scaled - brd_sz_scaled, 0));
if (msaa_scale != 1){
pixman_f_transform_t ftrans;

View File

@ -1,6 +1,6 @@
# Template file for 'fuzzel'
pkgname=fuzzel
version=1.10.2
version=1.11.0
revision=1
build_style=meson
configure_args="-Dsvg-backend=librsvg"
@ -13,10 +13,10 @@ license="MIT"
homepage="https://codeberg.org/dnkl/fuzzel"
changelog="https://codeberg.org/dnkl/fuzzel/raw/branch/master/CHANGELOG.md"
distfiles="https://codeberg.org/dnkl/fuzzel/archive/${version}.tar.gz"
checksum=5362175f301af3f27c23138ac339294ce33dff61720ffc7eb13e78ec56f60a8b
checksum=4071728173dddac0df3d1b0af08ed92c4fdd4e86ff6bcf106d255a0acb67efdb
post_install() {
rm "${PKGDESTDIR}/usr/share/doc/fuzzel/CHANGELOG.md"
rm "${PKGDESTDIR}/usr/share/doc/fuzzel/LICENSE"
rm "${DESTDIR}/usr/share/doc/fuzzel/CHANGELOG.md"
rm "${DESTDIR}/usr/share/doc/fuzzel/LICENSE"
vlicense LICENSE
}