blob: b8fc6dba35a4c24b28435cf40cb25ef0d574bc55 [file] [log] [blame]
/**
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER.PD within this package.
*/
#define _GNU_SOURCE
#include <string.h>
void __cdecl __chk_fail(void) __attribute__((__noreturn__));
void *__cdecl __mempcpy_chk(void *dst, void *src, size_t n, size_t bufsize);
void *__cdecl __mempcpy_chk(void *dst, void *src, size_t n, size_t bufsize)
{
if (n > bufsize)
__chk_fail();
return mempcpy(dst, src, n);
}