From patchwork Sun Dec 6 01:03:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 107524 Received: from mail-dy1-f169.google.com (mail-dy1-f169.google.com [74.125.82.169]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.497.1796519035344664160 for ; Sat, 05 Dec 2026 17:03:55 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=UPKQ2f36; spf=pass (domain: gmail.com, ip: 74.125.82.169, mailfrom: raj.khem@gmail.com) Received: by mail-dy1-f169.google.com with SMTP id 5a478bee46e88-38431138772so3127342eec.1 for ; Sat, 05 Dec 2026 17:03:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796519035; x=1797123835; 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=uTGn9uRmynDk5Y86uQ3/ayPAb1aqZkhgJswHnKYhdyU=; b=UPKQ2f366rmDE9LCYnQK+pmb3TqsNqW1xO8tshZo60R4Lzt2QcnoNJmFupc++HBdCr q8ZmXFahPievnkedaqWnSZgrjIpDcUhVLxcAWaqoas7YIzcQ47ppHaLs29K3Z4owYgKc jenJwGrjP/UenKhi+nfkQ69RPkUOUTK2w9VRuatiwZqzoGIn+fjdsfhS1P8ngmGIAFT3 jZuWzzGQA70bZhnKe1bGzJnrEZAHdYvCGjkISYdqtdCd+H3oUMbDpmLnAsVwqBosTLTT AdX06Z+Uz0iV/yYE8WsI+5GOWvO6Ly43EKeboixxVSlGxva06mjYMJWLvKxyeuI1SUFk RYtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796519035; x=1797123835; 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=uTGn9uRmynDk5Y86uQ3/ayPAb1aqZkhgJswHnKYhdyU=; b=wjxdAMtuyK/qNOBZ4C7jzLwR0NVQGZV02V2FV/rT0eGBuO0Qm47dZJyYNekFHJQxF6 5sjlJYv8DxC1PAnWNtdrI+cnHnweqbPFWiWh/vtP9u6IFdp9RvpPFWBfQUwUhZrZEPoz E8DmQkqDbcIQohD1yKspP8um/kl2ymM6S6HrfcHi/I7hBzp+ug/Vjso9mRef7pk62tiC wMvliwSIjScYMGfstlG59/tzf52qWFCSNpP7VLTACBOC2ePGXY15v7O2OoSz/gX8uILq EglBY0Ul9FhlX/iNE8x2402zsy32GN0EH1QJgmqdy+3PlT0lOuHUkEfVrTHn5pOovDtB 5yvg== X-Gm-Message-State: AB4q+uGimJEEMksWmCNNGa626mekW++Z2n5yRGoT9PfySQ6nhU/UV6uj wo1Sd+fMS9O7q+R+3BJ47kAClo1gmXGGDrZEx6ao4s5Oxwza3sUBDWkMVwXCxyxKRGvJJg== X-Gm-Gg: AZFdTZcAFWkGnNBWN6XMefqcvuMt2APs8aDyS1aQgL/BWqWXGRBJXuRDEA8vop6Yi27 nVWKsbtMQsvVMfIlKDhJ1yhstwmY4VVJyKO/32BDptzmJXPxlyyh5faa+vxZ0O+4WS3yPMu/Oob eVgmFbGq4EyJrjPZzhnAaSkK4kjYAiQyPLemabgCQD/kRhRELE+Bn2fc5ehsolL7H2WnNtJ2ySh kXQSATNPA0sPDOIbdWkQ+dAKwrXULnjRTz1dBDVwCem3wdBpTmzkn47L7flvvupd7dNV9uC37/D 5WfcYnO3lxjwd6stF9LLh34wBOLN08JHIztQBZt3vBjJybDpJYT7/1zkkWNtxHU0v9CqTo7tTHQ amF++QNKqOrbFFduMr/wXg0ZbB376gb9c39xZYNhoMHzuVNCYQ4YCtnWURjnfm+OP5EFw5nTGv6 T8IhBO0dT0dVed2SIp1+ub6ne2/Ew7/iHiJLIXy9uYLI9PKBg7BT57S3eNlNkB5HlnGZ0arH13K fVZswSh3U+/wNSTWvNne1T4Fop1bZTKDMzG7m6d2Rq1rMpWMMAVLy0ZGwscm8HQj7C8qOI3ZXUj riccPlGoIW9qx1QQ5Lva8Rycyabgn91u303S8+UrV78cuJonTL6xHUJeRz7OfzOYVWYnUaAOVnC o/hRhrstWE0S1OyscDcCJUDALK1jxb7wHJrUzRkCLKghbRwyJ7Cp0SjKl0SHEa96//rtlOWwwiQ x0oI4q0dhiJaOeTda8rIAgk7SYrYbgG/xWYtA/HKNW2dZe2acD42kg6/RMJ0B7xKyDjN0lr2w9Q FJyya6hlR4jO9u9t8ISq4Iw1vK6cx2aCznNKqDq4l+KQbzyzZbprXzryy5ZocE60QCOiZ4VpoiR fZzX X-Received: by 2002:a05:7301:3f0a:b0:387:4f69:3c1a with SMTP id 5a478bee46e88-38752018ef9mr8251548eec.1.1796519034481; Sat, 05 Dec 2026 17:03:54 -0800 (PST) Return-Path: Received: from apollo.tail3ccdd3.ts.net ([147.160.63.35]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-387521c17a3sm27247724eec.11.2026.12.05.17.03.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 17:03:54 -0800 (PST) From: Khem Raj X-Google-Original-From: Khem Raj To: openembedded-devel@lists.openembedded.org Cc: Khem Raj Subject: [meta-python][PATCH 7/9] python3-pyppmd: Upgrade 1.3.1 -> 1.3.3 Date: Sat, 5 Dec 2026 17:03:43 -0800 Message-ID: <20261206010345.1254213-8-khem.raj@oss.qualcomm.com> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261206010345.1254213-1-khem.raj@oss.qualcomm.com> References: <20261206010345.1254213-1-khem.raj@oss.qualcomm.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 ; Sun, 06 Dec 2026 01:03:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/134124 1.3.3: - Fix SIGABRT when OutputBuffer_Grow is called 1.3.2 (security): - Fix a crash when decoding after the end of a PPMd stream (GHSA-rhhf-rggw-xcx8) - Fix use-after-free and input buffer over-read in Ppmd7Decoder and Ppmd8Decoder introduced in 1.3.0 (GHSA-56q7-p87j-g8vc, GHSA-292h-wr4f-7p88) - Fix a double free in Ppmd7Decoder when model allocation fails (GHSA-8pqq-65h4-fmhg) Drop 0001-Ppmd7-Ppmd8-Fix-SIGABRT-in-OutputBuffer_Grow.patch, the fix is included in 1.3.3. Signed-off-by: Khem Raj --- ...md8-Fix-SIGABRT-in-OutputBuffer_Grow.patch | 70 ------------------- ...yppmd_1.3.1.bb => python3-pyppmd_1.3.3.bb} | 3 +- 2 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pyppmd/0001-Ppmd7-Ppmd8-Fix-SIGABRT-in-OutputBuffer_Grow.patch rename meta-python/recipes-devtools/python/{python3-pyppmd_1.3.1.bb => python3-pyppmd_1.3.3.bb} (84%) diff --git a/meta-python/recipes-devtools/python/python3-pyppmd/0001-Ppmd7-Ppmd8-Fix-SIGABRT-in-OutputBuffer_Grow.patch b/meta-python/recipes-devtools/python/python3-pyppmd/0001-Ppmd7-Ppmd8-Fix-SIGABRT-in-OutputBuffer_Grow.patch deleted file mode 100644 index 236aef82d3..0000000000 --- a/meta-python/recipes-devtools/python/python3-pyppmd/0001-Ppmd7-Ppmd8-Fix-SIGABRT-in-OutputBuffer_Grow.patch +++ /dev/null @@ -1,70 +0,0 @@ -From f9c6a0549503f00a1ab0ad58a98a30ee99b96770 Mon Sep 17 00:00:00 2001 -From: Leon Anavi -Date: Thu, 9 Jul 2026 11:37:04 +0000 -Subject: [PATCH] Ppmd7/Ppmd8: Fix SIGABRT in OutputBuffer_Grow - -The decode loop could abort in OutputBuffer_Grow() when a resumed -decode thread wrote past the current call's max_length. Stop early -once that limit is reached instead of trying to grow the buffer -further. - -Also fix Ppmd8Decoder_decode because it never updated needs_input -when input was fully consumed, unlike Ppmd7. - -Fixes test_ppmd7_decode_chunks and the equivalent Ppmd8 case, -which previously aborted deterministically partway through decoding -testdata2.ppmd in small chunks. - -This work was sponsored by GOVCERT.LU. - -Upstream-Status: Submitted [https://github.com/miurahr/pyppmd/pull/131] - -Signed-off-by: Leon Anavi ---- - src/ext/_ppmdmodule.c | 16 ++++++++++++++++ - 1 file changed, 16 insertions(+) - -diff --git a/src/ext/_ppmdmodule.c b/src/ext/_ppmdmodule.c -index dafa1c5..94f7f18 100644 ---- a/src/ext/_ppmdmodule.c -+++ b/src/ext/_ppmdmodule.c -@@ -531,6 +531,12 @@ Ppmd7Decoder_decode(Ppmd7Decoder *self, PyObject *args, PyObject *kwargs) { - break; - } - if (out->pos == out->size) { -+ /* Already reached max_length for this call; stop instead of -+ growing (avoids rest<=0 assert in OutputBuffer_Grow) */ -+ if (self->blocksOutputBuffer->max_length >= 0 && -+ self->blocksOutputBuffer->allocated >= self->blocksOutputBuffer->max_length) { -+ break; -+ } - if (OutputBuffer_Grow(self->blocksOutputBuffer, out) < 0) { - PyErr_SetString(PyExc_ValueError, "No Memory."); - goto error; -@@ -1276,6 +1282,11 @@ Ppmd8Decoder_decode(Ppmd8Decoder *self, PyObject *args, PyObject *kwargs) { - break; // filled expected - } - if (out->pos == out->size) { -+ /* Same guard as for Ppmd7Decoder_decode() above */ -+ if (self->blocksOutputBuffer->max_length >= 0 && -+ self->blocksOutputBuffer->allocated >= self->blocksOutputBuffer->max_length) { -+ break; -+ } - if (OutputBuffer_Grow(self->blocksOutputBuffer, out) < 0) { - PyErr_SetString(PyExc_ValueError, "L1586: Unknown status"); - goto error; -@@ -1303,6 +1314,11 @@ Ppmd8Decoder_decode(Ppmd8Decoder *self, PyObject *args, PyObject *kwargs) { - self->in_begin = 0; - self->in_end = 0; - } -+ if (self->eof) { -+ self->needs_input = False; -+ } else { -+ self->needs_input = True; -+ } - } else { - const size_t data_size = in->size - in->pos; - self->needs_input = False; --- -2.47.3 - diff --git a/meta-python/recipes-devtools/python/python3-pyppmd_1.3.1.bb b/meta-python/recipes-devtools/python/python3-pyppmd_1.3.3.bb similarity index 84% rename from meta-python/recipes-devtools/python/python3-pyppmd_1.3.1.bb rename to meta-python/recipes-devtools/python/python3-pyppmd_1.3.3.bb index 5af79d0453..459ce59202 100644 --- a/meta-python/recipes-devtools/python/python3-pyppmd_1.3.1.bb +++ b/meta-python/recipes-devtools/python/python3-pyppmd_1.3.3.bb @@ -6,10 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=4fbd65380cdd255951079008b364516c" inherit pypi python_setuptools_build_meta ptest -SRC_URI[sha256sum] = "ced527f08ade4408c1bfc5264e9f97ffac8d221c9d13eca4f35ec1ec0c7b6b2e" +SRC_URI[sha256sum] = "c988577567e013445d32e1beeb4b9713bace51a418a7596d353ed139c906b18c" SRC_URI += " \ - file://0001-Ppmd7-Ppmd8-Fix-SIGABRT-in-OutputBuffer_Grow.patch \ file://run-ptest \ "