Line | Count | Source |
1 | #include <stddef.h> | |
2 | #include <stdio.h> | |
3 | #include <stdint.h> | |
4 | ||
5 | extern "C" { | |
6 | ||
7 | #include "sshkey.h" | |
8 | #include "sshbuf.h" | |
9 | ||
10 | int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) | |
11 | 7.08k | { |
12 | 7.08k | struct sshkey *k = NULL; |
13 | 7.08k | struct sshbuf *b = sshbuf_from(data, size); |
14 | 7.08k | int r = sshkey_private_deserialize(b, &k); |
15 | 7.08k | if (r == 0) sshkey_free(k); |
16 | 7.08k | sshbuf_free(b); |
17 | 7.08k | return 0; |
18 | 7.08k | } |
19 | ||
20 | } // extern | |
21 |