mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-10 10:44:54 +00:00
replay: Check properly version number
0 as version was never used so don't allow it Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
c6881ad1a0
commit
d0f4910c1d
@ -1416,7 +1416,7 @@ SpiceReplay *spice_replay_new(FILE *file, int nsurfaces)
|
||||
spice_return_val_if_fail(file != NULL, NULL);
|
||||
|
||||
if (fscanf(file, "SPICE_REPLAY %u\n", &version) == 1) {
|
||||
if (version > 1) {
|
||||
if (version != 1) {
|
||||
spice_warning("Replay file version unsupported");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user