Skip to content
Snippets Groups Projects
Commit 04a0afe5 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Markus Armbruster
Browse files

coverity-model: replay data is considered trusted


Replay data is not considered a possible attack vector; add a model that
does not use getc so that "tainted data" warnings are suppressed.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Message-Id: <20180514141218.28438-1-pbonzini@redhat.com>
Reviewed-by: default avatarMarkus Armbruster <armbru@redhat.com>
[Whitespace tweaked]
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent 717ea844
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,18 @@ static int get_keysym(const name2keysym_t *table,
}
}
/* Replay data is considered trusted. */
uint8_t replay_get_byte(void)
{
uint8_t byte = 0;
if (replay_file) {
uint8_t c;
byte = c;
}
return byte;
}
/*
* GLib memory allocation functions.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment