dxgicommon.idl file is imported from wine project. The patch should be
sent to wine project first, here https://gitlab.winehq.org/wine/wine
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/list
This patch allows to use _FORTIFY_SOURCE=3 which is also supported by
GLIBC headers.
Example:
char *p0, *p1, *p2;
void test(size_t sz, const char *s, size_t n)
{
memcpy(p0, s, n);
p1 = malloc(42);
memcpy(p1, s, n);
p2 = malloc(sz);
memcpy(p2, s, n);
}
- Result with _FORTIFY_SOURCE=1
Signed-off-by: Kacper Michajłow
---
mingw-w64-headers/include/dxgicommon.h | 5 +
mingw-w64-headers/include/dxgicommon.idl | 5 +
2 files changed, 10 insertions(+)
diff --git a/mingw-w64-headers/include/dxgicommon.h
b/mingw-w64-headers/include/dxgicommon.h
index db8519597..4f4731583 1