[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/7] block: Miscellaneous minor Coverity fixes
From: |
Peter Maydell |
Subject: |
[PATCH 0/7] block: Miscellaneous minor Coverity fixes |
Date: |
Wed, 31 Jul 2024 15:36:10 +0100 |
This patchset is a collection of fixes for minor Coverity reported
issues. In all cases, there isn't a user-visible problem, but
the Coverity issue pointed up somewhere where we could clean
up the code or make it a bit more obvious to a human reader
what the intent was.
Only lightly tested (with "make check" and "make check-avocado").
thanks
-- PMM
Peter Maydell (7):
block/vdi.c: Avoid potential overflow when calculating size of write
block/gluster: Use g_autofree for string in qemu_gluster_parse_json()
hw/block/pflash_cfi01: Don't decrement pfl->counter below 0
hw/ide/atapi: Be explicit that assigning to s->lcyl truncates
hw/block/fdc-isa: Assert that isa_fdc_get_drive_max_chs() found
something
hw/ide/pci.c: Remove dead code from bmdma_prepare_buf()
block/ssh.c: Don't double-check that characters are hex digits
block/gluster.c | 6 +-----
block/ssh.c | 10 ++++++----
block/vdi.c | 2 +-
hw/block/fdc-isa.c | 2 ++
hw/block/pflash_cfi01.c | 1 +
hw/ide/atapi.c | 2 +-
hw/ide/pci.c | 4 ----
7 files changed, 12 insertions(+), 15 deletions(-)
--
2.34.1
- [PATCH 0/7] block: Miscellaneous minor Coverity fixes,
Peter Maydell <=