projects
/
libc-test
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
memmem-oob regression test, update string tests with align/tail
[libc-test]
/
src
/
regression
/
memmem-oob.c
1
// memmem should not access oob data
2
#include <string.h>
3
#include "test.h"
4
5
int main(void)
6
{
7
char *p = memmem("abcde", 4, "cde", 3);
8
if (p)
9
t_error("memmem(abcde,4,cde,3) returned %s, want NULL\n", p);
10
return t_status;
11
}