comparison fuzz-common.c @ 1529:66a1a2547133 fuzz

The fuzzer has managed to generated DSS key/signature pairs that verify. Avoid false positives from bogus keys that wouldn't be used
author Matt Johnston <matt@ucc.asn.au>
date Wed, 21 Feb 2018 21:49:24 +0800
parents 32f990cc96b1
children 2f64cb3d3007
comparison
equal deleted inserted replaced
1528:b9e4fd5a0e72 1529:66a1a2547133
20 fuzz.wrapfds = 1; 20 fuzz.wrapfds = 1;
21 fuzz.do_jmp = 1; 21 fuzz.do_jmp = 1;
22 fuzz.input = m_malloc(sizeof(buffer)); 22 fuzz.input = m_malloc(sizeof(buffer));
23 _dropbear_log = fuzz_dropbear_log; 23 _dropbear_log = fuzz_dropbear_log;
24 crypto_init(); 24 crypto_init();
25 /* let any messages get flushed */
26 setlinebuf(stdout);
25 } 27 }
26 28
27 int fuzz_set_input(const uint8_t *Data, size_t Size) { 29 int fuzz_set_input(const uint8_t *Data, size_t Size) {
28 30
29 fuzz.input->data = (unsigned char*)Data; 31 fuzz.input->data = (unsigned char*)Data;