mailing list of musl libc
 help / color / mirror / code / Atom feed
bc2f2d836bf31f40ae16774c20011241197eda23 blob 449 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
 
#define _GNU_SOURCE
#include <string.h>
#include <poll.h>
#include <stddef.h>
#include "atomic.h"
#include "atomic.h"

int __ppoll_chk(struct pollfd *fds, nfds_t n, const struct timespec *to, const sigset_t *mask, size_t fdslen)
{
	if (fdslen / sizeof(*fds) < n) a_crash();
	return ppoll(fds, n, to, mask);
}

void *__mempcpy_chk(void *dest, const void *src, size_t n, size_t destlen)
{
	if (destlen < n) a_crash();
	return mempcpy(dest, src, n);
}
debug log:

solving bc2f2d8 ...
found bc2f2d8 in https://inbox.vuxu.org/musl/1434509291-28997-1-git-send-email-josiahw@gmail.com/

applying [1/1] https://inbox.vuxu.org/musl/1434509291-28997-1-git-send-email-josiahw@gmail.com/
diff --git a/src/compat/gnu_chk.c b/src/compat/gnu_chk.c
new file mode 100644
index 0000000..bc2f2d8

Checking patch src/compat/gnu_chk.c...
Applied patch src/compat/gnu_chk.c cleanly.

index at:
100644 bc2f2d836bf31f40ae16774c20011241197eda23	src/compat/gnu_chk.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).