[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Invalid length provided for SMBIOS data
On Mon, Oct 02, 2006 at 06:13:37PM +0100, Keir Fraser wrote: > I've checked in a simplification of the SMBIOS code as changeset 11686 in > xen-unstable. Since this entirely removes the code that computes the table > size 'ahead of time', it is very likely to fix this bug. We now *definitely* > write the number of bytes that we actually emitted when constructing the > tables. So unless the tables themselves are screwed, the length field must > now surely be correct. And indeed the one of the tables was screwed. There is a sneaky typo in calculating how far to advance the pointer in the CPU table - its doing strlen(buf) instead of strlen(cpu_manufactuerer) which on my particular system offset things by 6 bytes. Attaching the trivial patch to fix it - applies on top of your patch in 11686. Signed-of-by: Daniel P. Berrange <berrange@xxxxxxxxxx> Regards, Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| Attachment:
xen-smbios-length-2.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |