Skip to content

Commit 37b4772

Browse files
committed
Some C style
1 parent 72ba3d7 commit 37b4772

File tree

1 file changed

+9
-3
lines changed
  • examples/fuzzing/linux_x8664

1 file changed

+9
-3
lines changed

examples/fuzzing/linux_x8664/fuzz.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,23 @@
55
// Program that will crash easily.
66
#define SIZE (10)
77

8-
int fun(int i) {
8+
int fun(int i)
9+
{
910
char *buf = malloc(SIZE);
1011
char buf2[SIZE];
11-
while (*buf = getc(stdin) == 'A') {
12+
13+
while (*buf = getc(stdin) == 'A')
14+
{
1215
buf[i++] = *buf;
1316
}
17+
1418
strncpy(buf2, buf, i);
1519
printf(buf2);
20+
1621
return 0;
1722
}
1823

19-
int main(int argc, char **argv) {
24+
int main(int argc, char **argv)
25+
{
2026
return fun(argc);
2127
}

0 commit comments

Comments
 (0)