From patchwork Fri Nov 27 15:33:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 106120 Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.17902.1795793637378200747 for ; Fri, 27 Nov 2026 07:33:57 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@konsulko.com header.s=google header.b=Zlg71Q5p; spf=pass (domain: konsulko.com, ip: 209.85.221.54, mailfrom: leon.anavi@konsulko.com) Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-4b52fcb410dso3301583f8f.1 for ; Fri, 27 Nov 2026 07:33:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1795793635; x=1796398435; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=f2oWW5AjuTCMKTHm8GEc1KzX/J40JFZTufcrLFRpWx4=; b=Zlg71Q5pqvw5qgXqydql3DZpQg/F82XuXMLnqcgDLfJ9KZWO+KJk4zCmvNmwhsFbky xyqe2tE+1vIuXVVwsW4GeSFV+dekDfx7B6bES8oDPL03SpBeoHXLIEqQnZYM8auBrwPP M01gWfQpcQSGfIDqz4QoQXeXh9dfSPAKFtY2c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795793635; x=1796398435; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=f2oWW5AjuTCMKTHm8GEc1KzX/J40JFZTufcrLFRpWx4=; b=jj7kDbL9RMfzKbnJFWx4sV7FyOsO8UABYCyrKD+Il8IUAc/+kJbr/lqiG+HLddKI2a MlQ20cHLB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ODzxOrBpSfzJfsFk6ratA1a 8xseJTNF4FHcJjDDfLZHFnl/y4OqDLuIhjwmxfF982GKaSwztm5oP9A== X-Received: by 2002:a05:6000:2893:b0:4a9:6c58:1799 with SMTP id ffacd0b85a97d-4aa56c442f6mr56874087f8f.13.1795793635601; Fri, 27 Nov 2026 07:33:55 -0800 (PST) Return-Path: Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4b3415763f7sm24174207f8f.9.2026.11.27.07.33.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2026 07:33:55 -0800 (PST) From: Leon Anavi To: openembedded-devel@lists.openembedded.org Cc: Leon Anavi Subject: [meta-python][PATCH 6/6] python3-svglib: Upgrade 2.4.0 -> 2.5.0 Date: Fri, 27 Nov 2026 17:33:48 +0200 Message-ID: <20261127153348.2880928-6-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261127153348.2880928-1-leon.anavi@konsulko.com> References: <20261127153348.2880928-1-leon.anavi@konsulko.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Fri, 27 Nov 2026 15:34:07 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133381 Upgrade to release 2.5.0: Security: - A long transform attribute could make convertTransform() take time quadratic in its length: each pair of brackets rebuilt the whole string, and the result was checked only afterwards, so 2 MB of brackets, which a 3 KB .svgz file holds, kept svg2rlg() busy for minutes (CWE-407, GHSA-43qg-v5jj-vw5c). It is read in one pass now, with the same result. Thanks to @lanjianchun for the report. - An that refers to a fragment of the document, with href="#id", was rendered again without the checks that has had since 2.3.1: a cycle, such as an that contains an that refers to it, ended in RecursionError, and a few elements that refer to each other, each level to the one before it twice, took time that doubled with every level, so that 2 KB took hours (CWE-400, CWE-674, GHSA-cmj4-5g24-pp37, reported again as GHSA-4fr5-v6hm-mwjg). A cycle is now skipped and an error is logged, and all targets count against the same budgets as (MAX_USE_EXPANSIONS, MAX_USE_CLONED_ELEMENTS). An that refers to an element that is not defined yet is skipped too, and not an AttributeError. Thanks to @GeniusKangaroo and @john-lawniczak for the reports. - An image embedded as a data:image/png or data:image/jpeg URI was opened by Pillow with the decoder chosen from its bytes, not from its label, so a PostScript file made it run Ghostscript, where that is installed, when the PDF was drawn (CWE-20, CWE-94, GHSA-h5r7-mh88-vjm4). Such an image is now decoded as a PNG or a JPEG only (DATA_URI_IMAGE_FORMATS), and anything else is refused with the UnidentifiedImageError that data that is not an image already got. Thanks to @superbot-helper for the report. Tooling and housekeeping: - CI runs PyPy 3.11 on Ubuntu 24.04 instead of ubuntu-latest, which is Ubuntu 26.04 now: the PyPy wheel of lxml needs libxml2.so.2, and 26.04 doesn't have it, so the PyPy job failed at import time. The other jobs follow ubuntu-latest. Fixed: - A gradient with spreadMethod="reflect" or "repeat" is now repeated past its ends, as in browsers; it was painted black there. Every other period is back to front for reflect. An unknown spreadMethod is pad, and so is a gradient that would need more than 200 periods, or more than 10,000 stops in all of them . - The stop-color and stop-opacity of a gradient stop can now be set by a CSS rule, such as the classes of the SVG that Illustrator exports (.cls-1 { stop-color: #fff }); the stop was black. A