pubkey_fuzz.cc 283 B

12345678910111213141516171819
  1. #include <stddef.h>
  2. #include <stdio.h>
  3. #include <stdint.h>
  4. extern "C" {
  5. #include "sshkey.h"
  6. int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
  7. {
  8. struct sshkey *k = NULL;
  9. int r = sshkey_from_blob(data, size, &k);
  10. if (r == 0) sshkey_free(k);
  11. return 0;
  12. }
  13. } // extern