xemu/replay
Peter Maydell 0b57007755 replay: Exit on errors reading from replay log
Currently replay_get_byte() does not check for an error
from getc(). Coverity points out (CID 1390622) that this
could result in unexpected behaviour (such as looping
forever, if we use the replay_get_dword() return value
for a loop count). We don't expect reads from the replay
log to fail, and if they do there is no way we can
continue. So make them fatal errors.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Pavel Dovgalyuk <pavel.dovgaluk@ispras.ru>
Message-id: 20181106153330.5139-1-peter.maydell@linaro.org
2018-11-08 13:24:35 +00:00
..
Makefile.objs replay: add record/replay for audio passthrough 2017-03-01 15:11:44 +01:00
replay-audio.c replay: push replay_mutex_lock up the call tree 2018-03-12 17:10:36 +01:00
replay-char.c trivial: Make bios files and source files non-executable 2018-09-25 17:26:18 +02:00
replay-events.c replay: don't process events at virtual clock checkpoint 2018-10-19 13:44:12 +02:00
replay-input.c Include less of the generated modular QAPI headers 2018-03-02 13:45:50 -06:00
replay-internal.c replay: Exit on errors reading from replay log 2018-11-08 13:24:35 +00:00
replay-internal.h replay: pass raw icount value to replay_save_clock 2018-10-19 13:44:15 +02:00
replay-net.c record/replay: add network support 2017-01-06 10:38:00 +08:00
replay-snapshot.c replay: allow loading any snapshots before recording 2018-10-02 19:08:58 +02:00
replay-time.c replay: pass raw icount value to replay_save_clock 2018-10-19 13:44:15 +02:00
replay.c replay: don't process events at virtual clock checkpoint 2018-10-19 13:44:12 +02:00