Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/oss-fuzz/fuzz-credential-from-url-gently.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / oss-fuzz / fuzz-credential-from-url-gently.c` 32 lines ยท 549 bytes Raw Blame History 1 #include "git-compat-util.h" 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include "credential.h" 8 9 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); 10 11 int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) 12 { 13 struct credential c; 14 char *buf; 15 16 buf = malloc(size + 1); 17 if (!buf) 18 return 0; 19 20 memcpy(buf, data, size); 21 buf[size] = 0; 22 23 // start fuzzing 24 credential_init(&c); 25 credential_from_url_gently(&c, buf, 1); 26 27 // cleanup 28 credential_clear(&c); 29 free(buf); 30 31 return 0; 32 }