Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: third_party/afl/src/test-instr.c

Issue 2075883002: Add American Fuzzy Lop (afl) to third_party/afl/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/afl/src/qemu_mode/patches/translate-all.diff ('k') | third_party/afl/src/types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 american fuzzy lop - a trivial program to test the build
3 --------------------------------------------------------
4
5 Written and maintained by Michal Zalewski <lcamtuf@google.com>
6
7 Copyright 2014 Google Inc. All rights reserved.
8
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at:
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 */
16
17 #include <stdio.h>
18 #include <stdlib.h>
19 #include <unistd.h>
20
21 int main(int argc, char** argv) {
22
23 char buf[8];
24
25 if (read(0, buf, 8) < 1) {
26 printf("Hum?\n");
27 exit(1);
28 }
29
30 if (buf[0] == '0')
31 printf("Looks like a zero to me!\n");
32 else
33 printf("A non-zero value? How quaint!\n");
34
35 exit(0);
36
37 }
OLDNEW
« no previous file with comments | « third_party/afl/src/qemu_mode/patches/translate-all.diff ('k') | third_party/afl/src/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698