comparison fuzzer-pubkey.c @ 1733:d529a52b2f7c coverity coverity

merge coverity from main
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 Jun 2020 21:07:34 +0800
parents ba6fc7afe1c5
children
comparison
equal deleted inserted replaced
1643:b59623a64678 1733:d529a52b2f7c
25 buffer *keyblob = buf_getstringbuf(fuzz.input); 25 buffer *keyblob = buf_getstringbuf(fuzz.input);
26 26
27 unsigned int algolen; 27 unsigned int algolen;
28 char* algoname = buf_getstring(keyblob, &algolen); 28 char* algoname = buf_getstring(keyblob, &algolen);
29 29
30 if (have_algo(algoname, algolen, sshhostkey) == DROPBEAR_FAILURE) { 30 if (signature_type_from_name(algoname, algolen) == DROPBEAR_SIGNKEY_NONE) {
31 dropbear_exit("fuzzer imagined a bogus algorithm"); 31 dropbear_exit("fuzzer imagined a bogus algorithm");
32 } 32 }
33 33
34 int ret = fuzz_checkpubkey_line(line, 5, "/home/me/authorized_keys", 34 int ret = fuzz_checkpubkey_line(line, 5, "/home/me/authorized_keys",
35 algoname, algolen, 35 algoname, algolen,