47dba3c7715d0621805f7a77ebe0cfbf304b9c7d blob 146 bytes (raw)
1
2
3
4
5
6
7
8
| | #define _BSD_SOURCE
#include <string.h>
void explicit_bzero(void *d, size_t n)
{
memset(d, 0, n);
__asm__ volatile("": "r="(d) :: "memory");
}
|
debug log:
solving 47dba3c7 ...
found 47dba3c7 in https://inbox.vuxu.org/musl/CA+XhMqziR9XUMxh9uRPmH3CAtP4NauMY9a9n0C0NsDu7zS3CXw@mail.gmail.com/
applying [1/1] https://inbox.vuxu.org/musl/CA+XhMqziR9XUMxh9uRPmH3CAtP4NauMY9a9n0C0NsDu7zS3CXw@mail.gmail.com/
diff --git a/src/string/explicit_bzero.c b/src/string/explicit_bzero.c
new file mode 100644
index 00000000..47dba3c7
Checking patch src/string/explicit_bzero.c...
Applied patch src/string/explicit_bzero.c cleanly.
index at:
100644 47dba3c7715d0621805f7a77ebe0cfbf304b9c7d src/string/explicit_bzero.c
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).