In the v2->v3 change of what would become commit
37676f83
<http://www.seabios.org/pipermail/seabios/2012-December/005166.html>, the
defense against an initial "addr > end" condition ("wraparound") was
erroneously loosened.
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
addr += 2;
}
- /* parsing finished, UUID not found */
- if (addr == end)
+ /* parsing finished or skipped entirely, UUID not found */
+ if (addr >= end)
return;
uuid = (u8 *)(addr + offsetof(struct smbios_type_1, uuid));