totp

Simple cli tool for storing TOTP secrets and generating tokens
git clone https://git.inz.fi/totp/
Log | Files | Refs | Submodules

fuzzuri.c (378B)


      1 #include "token.c"
      2 #include "util.c"
      3 #include <stdlib.h>
      4 #include <unistd.h>
      5 
      6 __AFL_FUZZ_INIT();
      7 
      8 int main(void)
      9 {
     10 	__AFL_INIT();
     11 	char *src = NULL;
     12 	unsigned char *buf = __AFL_FUZZ_TESTCASE_BUF;
     13 	while (__AFL_LOOP(10000)) {
     14 		int len = __AFL_FUZZ_TESTCASE_LEN;
     15 		src = realloc(src, len + 1);
     16 		memcpy(src, buf, len);
     17 		src[len] = '\0';
     18 		token_parse_uri(src);
     19 	}
     20 
     21 	return 0;
     22 }