mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
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: Paolo Bonzini <[email protected]> Message-Id: <[email protected]> Reviewed-by: Markus Armbruster <[email protected]> [Whitespace tweaked] Signed-off-by: Markus Armbruster <[email protected]>
This commit is contained in:
1 parent
717ea844a7
commit
04a0afe528
1 file changed
+12
@@ -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.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user