Sign in
llvm
/
llvm-archive
/
089ca8750d7cd1f1ec96968922bf4bcfe223bb3a
/
.
/
safecode
/
test
/
mem_safety
/
format_string
/
format_string-014.c
blob: 74e3a870ece884b4761fa38cb67eaabd06e5fdfe [
file
] [
log
] [
blame
]
/* sscanf() with too few arguments */
#include
<stdio.h>
int
main
()
{
char
buffer
[]
=
"This is a string."
;
char
buf1
[
100
],
buf2
[
100
],
buf3
[
100
],
buf4
[
100
];
sscanf
(
buffer
,
"%s %s %s %s"
,
buf1
,
buf2
,
buf3
);
return
0
;
}