logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://anongit.hacktivis.me/git/etc_portage.git/
commit: 10077f207437c59b9b84e8689755fa4e15411963
parent 6303d515ca41d3e54a61a948dc79a7303f332f03
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun,  3 Aug 2025 20:43:30 +0200

sys-libs/gcompat: wchar: add __wmemcpy_chk

Diffstat:

Apatches/sys-libs/gcompat/0001-wchar-add-__wmemcpy_chk.patch34++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+), 0 deletions(-)

diff --git a/patches/sys-libs/gcompat/0001-wchar-add-__wmemcpy_chk.patch b/patches/sys-libs/gcompat/0001-wchar-add-__wmemcpy_chk.patch @@ -0,0 +1,34 @@ +From 24b45c10523504ec1f9ad44c77fe9a7f9a120cae Mon Sep 17 00:00:00 2001 +From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me> +Date: Sun, 3 Aug 2025 20:30:26 +0200 +Subject: [PATCH] wchar: add __wmemcpy_chk + +Found in some Godot binaries +--- + libgcompat/wchar.c | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c +index 4af686d..170f8a6 100644 +--- a/libgcompat/wchar.c ++++ b/libgcompat/wchar.c +@@ -165,3 +165,14 @@ wchar_t *__wcscat_chk(wchar_t *dest, const wchar_t *src, size_t n) + *dest++ = 0; + return a; + } ++ ++wchar_t *__wmemcpy_chk(wchar_t *dest, const wchar_t *src, size_t n, ++ size_t destlen) ++{ ++ assert(dest != NULL); ++ assert(src != NULL); ++ ++ assert(destlen >= n); ++ ++ return wmemcpy(dest, src, n); ++} + +base-commit: 7f2d3d5a82db83a34d5947d6bd195d81e1fc2b9b +-- +2.49.1 +