deleted file mode 100644
@@ -1,41 +0,0 @@
-From dca9a17c75c7442060c08fdced4e4b0c8d2babae Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-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 <raj.khem@gmail.com>
----
- 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;
similarity index 84%
rename from meta-oe/recipes-core/safec/safec_3.9.1.bb
rename to meta-oe/recipes-core/safec/safec_3.16.bb
@@ -6,10 +6,8 @@ SECTION = "lib"
inherit autotools pkgconfig
-SRCREV = "39a0a819f80853498e48a6e601a446a122b64aaa"
-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 \
- "
+SRCREV = "3a2487e8ad2fbb7be4e5e14043e91a86879a0ab5"
+SRC_URI = "git://github.com/rurban/safeclib.git;branch=master;protocol=https;tag=v${PV}"
UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+\.\d+(\.\d+)?)$"
# arm-yoe-linux-gnueabi-clang: error: argument unused during compilation: '-mretpoline' [-Werror,-Wunused-command-line-argument]
- 3.12 splits _chk and _uchk at compile-time, calling the fast unchecked worker when all arguments are known valid, and inlines more mem/str functions. - Security: 3.15 fixes writes past dmax in wcstombs_s, mbstowcs_s, wcsrtombs_s and mbsrtowcs_s, and several other memory safety bugs in the wchar, wcsfc_s, wcsnorm_compose_s and strcmpfld_s functions. - 3.15 also makes qsort_s, ctime_s, asctime_s and swprintf_s thread-safe and fixes stpcpy_s/stpncpy_s return values and printf/scanf issues. - 3.16 adds Windows MSVC support in cmake, an optional cache flush for memset_s/memzero_s (--enable-cache-flush) and fixes the ARM barrier. Drop the vsnprintf_s buffer size patch, as upstream now allocates the extra byte. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...snprintf_s-Increase-Buffer-Size-by-1.patch | 41 ------------------- .../safec/{safec_3.9.1.bb => safec_3.16.bb} | 6 +-- 2 files changed, 2 insertions(+), 45 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.16.bb} (84%)