Sign in
llvm
/
llvm-archive
/
f91d1660b4827134c7666ae9637f21a2741d183f
/
.
/
safecode
/
test
/
cstdlib
/
strcoll-001.c
blob: 041b78b643893bcae7610a8f07ab56abf1e38ef7 [
file
] [
log
] [
blame
]
// RUN: test.sh -e -t %t %s
#include
<string.h>
// strcoll() reading out of bounds.
int
main
()
{
char
abc
[]
=
{
'a'
,
'b'
,
'c'
};
char
strabc
[]
=
"abc"
;
int
result
;
result
=
strcoll
(&
abc
[
0
],
&
strabc
[
0
]);
return
0
;
}