Paolo Bonzini 57e3069641 smbios: sanitize type from external type before checking have_fields_bitmap
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 <pbonzini@redhat.com>
2022-09-18 09:17:40 +02:00
..
2022-06-28 11:06:44 +02:00
2022-09-07 09:18:33 +02:00
2022-06-30 04:49:40 +05:30
2022-04-26 12:25:14 +02:00
2022-09-04 07:02:56 +01:00
2022-07-22 19:01:44 +02:00
2022-06-11 11:44:50 +02:00
2022-06-30 09:21:13 +02:00
2022-09-02 10:22:39 +08:00
2022-07-06 10:22:38 -03:00