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 main(int argc,char ** argv)21int 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 } 38