fuzz/x86_emulate: Implement input_read() and input_avail()
authorGeorge Dunlap <george.dunlap@citrix.com>
Wed, 11 Oct 2017 17:49:39 +0000 (18:49 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 11 Oct 2017 22:35:24 +0000 (23:35 +0100)
commit5a28455359f06b45d47a4da33240888a44acdf46
tree8e7f02af089354c012ded0f47c775516ec63616b
parente03583ac443934d10ce30728629fa7c19e664d8d
fuzz/x86_emulate: Implement input_read() and input_avail()

Rather than open-coding the "read" from the input file.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/fuzz/x86_instruction_emulator/fuzz-emul.c