diff options
author | Jeremy Drake <cygwin@jdrake.com> | 2025-08-01 11:03:00 -0700 |
---|---|---|
committer | Jeremy Drake <cygwin@jdrake.com> | 2025-08-04 09:59:10 -0700 |
commit | 276eb28273f3dae420ff27bdb3baaca6964b5ed7 (patch) | |
tree | 4fde15220ed2bf42c1bc356341b0465b29e8ba1f /newlib/libc/stdio/vasniprintf.c | |
parent | 22580ced9ac9af2a1e3068863bebecf738e33458 (diff) | |
download | newlib-276eb28273f3dae420ff27bdb3baaca6964b5ed7.zip newlib-276eb28273f3dae420ff27bdb3baaca6964b5ed7.tar.gz newlib-276eb28273f3dae420ff27bdb3baaca6964b5ed7.tar.bz2 |
Cygwin: add api version check to c++ malloc struct override.
This prevents memory corruption if a newer app or dll is used with an
older cygwin dll. This is an unsupported scenario, but it's still a
good idea to avoid corrupting memory if possible.
Fixes: 7d5c55faa1 ("Cygwin: add wrappers for newer new/delete overloads")
Co-authored-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Jeremy Drake <cygwin@jdrake.com>
Diffstat (limited to 'newlib/libc/stdio/vasniprintf.c')
0 files changed, 0 insertions, 0 deletions