On Mon, Sep 5, 2022 at 10:44 PM Paolo Bonzini <pbonz...@redhat.com> wrote: > > test_bit uses header->type as an offset; if the file incorrectly specifies a > type greater than 127, smbios_entry_add will read and write garbage. > > To fix this, just pass the smbios data through, assuming the user knows what > to do. Reported by Coverity as CID 1487255. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > hw/smbios/smbios.c | 14 ++++++++------ > 1 file changed, 8 insertions(+), 6 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>