fuzzel: update to 1.11.1

This commit is contained in:
tranzystorekk 2024-09-13 09:17:09 +02:00
parent 1ad38b22e7
commit 7db660fb47
2 changed files with 2 additions and 30 deletions

View File

@ -1,28 +0,0 @@
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.11.0
version=1.11.1
revision=1
build_style=meson
configure_args="-Dsvg-backend=librsvg"
@ -13,7 +13,7 @@ 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=4071728173dddac0df3d1b0af08ed92c4fdd4e86ff6bcf106d255a0acb67efdb
checksum=7b22fefdada10e4658ec1f914a7296ddde73a5d20a2a1ed3c02c50bf2e701d3b
post_install() {
rm "${DESTDIR}/usr/share/doc/fuzzel/CHANGELOG.md"