diff options
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/string.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libgcompat/string.c b/libgcompat/string.c index f2a2e87..a164ab2 100644 --- a/libgcompat/string.c +++ b/libgcompat/string.c @@ -87,6 +87,14 @@ void *__memset_chk(void *s, int c, size_t n, size_t buflen) return memset(s, c, n); } +void __explicit_bzero_chk(void *s, size_t n, size_t buflen) +{ + assert(s != NULL); + assert(buflen >= n); + + explicit_bzero(s, n); +} + /** * Find byte in memory. * |