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>
(cherry picked from commit 57e3069641)
Resolves: bsc#1211697
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>