summary refs log tree commit diff stats
path: root/scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2022-06-27 14:53:18 +0100
committerDr. David Alan Gilbert <dgilbert@redhat.com>2022-07-20 12:15:09 +0100
commit5f87072e9532a92e6270577665aa2fa659ec0b3f (patch)
tree291a50392575206dcd762161751d401b3827883d /scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py
parent8f6fe91512cdc187e51108a4e57d7af6ccadd6d8 (diff)
downloadfocaccia-qemu-5f87072e9532a92e6270577665aa2fa659ec0b3f.tar.gz
focaccia-qemu-5f87072e9532a92e6270577665aa2fa659ec0b3f.zip
migration: remove unreachable code after reading data
The code calls qio_channel_read() in a loop when it reports
QIO_CHANNEL_ERR_BLOCK. This code is reported when errno==EAGAIN.

As such the later block of code will always hit the 'errno != EAGAIN'
condition, making the final 'else' unreachable.

Fixes: Coverity CID 1490203
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220627135318.156121-1-berrange@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'scripts/oss-fuzz/reorder_fuzzer_qtest_trace.py')
0 files changed, 0 insertions, 0 deletions