From patchwork Thu Dec 3 11:14:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Tyagi X-Patchwork-Id: 107192 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.11692.1796296759458841575 for ; Thu, 03 Dec 2026 03:19:19 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=J7mzusBl; spf=pass (domain: gmail.com, ip: 209.85.216.44, mailfrom: ankur.tyagi85@gmail.com) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-3b402824d07so9028626a91.1 for ; Thu, 03 Dec 2026 03:19:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796296759; x=1796901559; 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=u2XHw7MMoEalACUmMq4bWBhACmMltLERM61lva3FXFs=; b=J7mzusBllBBR6d/MmZUpvRiP/NO0b1oqo/GV65RfFWMDmcnFfnwCQx4zm1HgiptP59 YWM2yJOTQIV9445WOEv6glsIG5g/MdmKj2dJ02Sqi7cw8q/kg1mMkCXyWOunywEQN0Xm 2kfINPSNT/elJRtLpaW7EhG6PDY5nGjxP03wlQv+tOvQypR3hnWiogc0KBUTe0aVl51r y5nRhnIjJolWSFus9O+bXsvUbpQSrM5PBbiY6XppcrDfnM/T9ODaOhWOpj6vjf4Kg/q/ 0USabI6kGWCXkka0dZHkItPF3YKp4vISmtXDTiJkxHGMViV3uHY0nCpR6Bujlhsv4bW3 eJpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796296759; x=1796901559; 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=u2XHw7MMoEalACUmMq4bWBhACmMltLERM61lva3FXFs=; b=ZPZ0f2ZVPPkvQVSE5EC2rZM9+JSzQ0Uq62v498G28Gd5AsUz5n9QGN5w2YXBipl3AM Dg7yraF3S/qJhG1rQcdzKpsZ8mUNyQBu8oeAaMCWhHOmB3Zeyl/0kGyaanF/RtoHj734 IgZOQCo2mJupJSmTBq0NRWPEsEKURTceNNCFfo8XJswVp6WZn24KH0PXjGnfyAaZNQ6O VPLTK+xOnSiIXDLra5DBY6YsVbG5v8w0N8K/aml/JWrPYAQBFJV0TFsHTLSZLPhZ8szj 4wW0lmeXipo2kVaGrLBykap6e+bTh6nYN2MozITJHzR+bTTavW0tTI3U3k5bRXulFDHs p+Yg== X-Gm-Message-State: APuU4Z8X0Dy6BvUkUkSrxEjyrnegFkm6TvYm67er3x+dxXZTuEWQhW9U gaiQytv+Nm+W3BkoScy2R3TSm+GF2v7WC0mPMNTYwmsLb+mtfpqDcZlen4p8c8L2 X-Gm-Gg: AZFdTZejv2TFKahJWhjsmtfuaJHI4cHliMRahAq7BfVCll5BcNqheY2kPilCGjCBEXJ uqta2zqknR1pdjDgFUrAWeLRDSe67uJOo4fSYiHoQIxPg9MEIf+E6pLBhR8B3BfpcsXQ2cuvklD BVSixfw6dww9Bvb8z4p0x42nO2j4SRhpbVhD7F94T5mM1tKMEzo9ZIoW7orpYTHulXD/HTvOKXr P3+AMJZUoiXxH89Nn0eC0Fn0RR+7hYrCoYqxTss23D/wn1iRHL5PE1zJZr/Ug0X09f4beLerLUr bm3kcvbUHMHjLspDIWgFMvQiJvLym0CCNzJt9znltt8Pq19aNrhI3kXFiC2btTtFs+w/GgqCVfR XRz9/gkcwMHgX/7I4zJUoZCtAOwPdl5T6dMQYXVYjpJe1tbFk3b+YLCmcAosEGVrPoW1SxzqSgd v3GHrFN/Hpx/2KvpWzn2sOp9JicSqyLKNrjIAIqc/cSVIrPBXW/ZHA00rOKAcgp5dQL4IR8Xq87 jlEDmlxBy2XWu8dvrFO0DP91Kl19GCOzKSTN8U2pMH8N0P1HQ4E5l2ns6xuKu908yHTCQVDA/8h BzfoW6vRZCJKSCiBqSg9cbb9MBLH/KNrR7G1TA2hbo61GNuR8u5G6XdvlNIjWdAYdn/ejWzrM9M EMPvVBWIKW7Ye3gtnaJqhsw== X-Received: by 2002:a17:90a:da87:b0:3b0:9a2e:b494 with SMTP id 98e67ed59e1d1-3b41c95b089mr40998009a91.54.1796296758855; Thu, 03 Dec 2026 03:19:18 -0800 (PST) Return-Path: Received: from NVAPF55DW0D-IPD.. ([147.161.219.8]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5c7d65b94sm3890436a91.12.2026.12.03.03.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 03:19:18 -0800 (PST) From: ankur.tyagi85@gmail.com To: openembedded-devel@lists.openembedded.org Cc: Ankur Tyagi Subject: [oe][meta-oe][blacksail][PATCH 95/95] safec: upgrade 3.9.1 -> 3.9.2 Date: Fri, 4 Dec 2026 00:14:06 +1300 Message-ID: <20261203111406.4182597-95-ankur.tyagi85@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261203111406.4182597-1-ankur.tyagi85@gmail.com> References: <20261203111406.4182597-1-ankur.tyagi85@gmail.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 ; Thu, 03 Dec 2026 11:19:22 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/133985 From: Ankur Tyagi Dropped patch that is part of the upstream version Changelog: https://github.com/rurban/safeclib/blob/v3.9.2/ChangeLog Signed-off-by: Ankur Tyagi --- ...snprintf_s-Increase-Buffer-Size-by-1.patch | 41 ------------------- .../safec/{safec_3.9.1.bb => safec_3.9.2.bb} | 3 +- 2 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 meta-oe/recipes-core/safec/safec/0001-vsnprintf_s-Increase-Buffer-Size-by-1.patch rename meta-oe/recipes-core/safec/{safec_3.9.1.bb => safec_3.9.2.bb} (86%) diff --git a/meta-oe/recipes-core/safec/safec/0001-vsnprintf_s-Increase-Buffer-Size-by-1.patch b/meta-oe/recipes-core/safec/safec/0001-vsnprintf_s-Increase-Buffer-Size-by-1.patch deleted file mode 100644 index 5617aeb368..0000000000 --- a/meta-oe/recipes-core/safec/safec/0001-vsnprintf_s-Increase-Buffer-Size-by-1.patch +++ /dev/null @@ -1,41 +0,0 @@ -From dca9a17c75c7442060c08fdced4e4b0c8d2babae Mon Sep 17 00:00:00 2001 -From: Khem Raj -Date: Wed, 13 Aug 2025 20:23:48 -0700 -Subject: [PATCH] vsnprintf_s: Increase Buffer Size by 1 - -It is a buffer overflow warning that GCC 15.2 is catching. -The issue is that it's trying to write to `buf[len++]` when len could -potentially be 31, which would write to buf[31] in a buffer of size 32 -(valid indices 0-31), but the len++ post-increment means it could -theoretically write beyond the buffer bounds. - -Fixes - -../../sources/safec-3.9.1/src/str/vsnprintf_s.c: In function 'safec_ftoa.isra': -../../sources/safec-3.9.1/src/str/vsnprintf_s.c:523:24: error: writing 32 bytes into a region of size 31 [-Werror=stringop-overflow=] - 523 | buf[len++] = '0'; - | ~~~~~~~~~~~^~~~~ -../../sources/safec-3.9.1/src/str/vsnprintf_s.c:394:10: note: at offset [1, 32] into destination object 'buf' of size 32 - 394 | char buf[PRINTF_FTOA_BUFFER_SIZE]; - | ^~~ -cc1: all warnings being treated as errors - -Upstream-Status: Submitted [https://github.com/rurban/safeclib/pull/148] -Signed-off-by: Khem Raj ---- - src/str/vsnprintf_s.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/str/vsnprintf_s.c b/src/str/vsnprintf_s.c -index fa53ab42..0b62c3cb 100644 ---- a/src/str/vsnprintf_s.c -+++ b/src/str/vsnprintf_s.c -@@ -391,7 +391,7 @@ static size_t safec_ftoa(out_fct_type out, const char *funcname, char *buffer, - size_t idx, size_t maxlen, double value, - unsigned int prec, unsigned int width, - unsigned int flags) { -- char buf[PRINTF_FTOA_BUFFER_SIZE]; -+ char buf[PRINTF_FTOA_BUFFER_SIZE + 1]; // Add extra byte for safety - size_t len = 0U, off = 0U; - double tmp; - double diff = 0.0; diff --git a/meta-oe/recipes-core/safec/safec_3.9.1.bb b/meta-oe/recipes-core/safec/safec_3.9.2.bb similarity index 86% rename from meta-oe/recipes-core/safec/safec_3.9.1.bb rename to meta-oe/recipes-core/safec/safec_3.9.2.bb index 72e13efa8e..ceb429737d 100644 --- a/meta-oe/recipes-core/safec/safec_3.9.1.bb +++ b/meta-oe/recipes-core/safec/safec_3.9.2.bb @@ -6,9 +6,8 @@ SECTION = "lib" inherit autotools pkgconfig -SRCREV = "39a0a819f80853498e48a6e601a446a122b64aaa" +SRCREV = "bf847fd89f2e3399f2df75d8cd4d8cfe27c135bf" SRC_URI = "git://github.com/rurban/safeclib.git;branch=master;protocol=https;tag=v${PV} \ - file://0001-vsnprintf_s-Increase-Buffer-Size-by-1.patch \ " # arm-yoe-linux-gnueabi-clang: error: argument unused during compilation: '-mretpoline' [-Werror,-Wunused-command-line-argument] # arm-yoe-linux-gnueabi-clang: error: argument unused during compilation: '-fstack-clash-protection' [-Werror,-Wunused-command-line-argument]