View | Details | Raw Unified | Return to bug 1215102
Collapse All | Expand All

(-)a/shim.c (-1 / +5 lines)
Lines 709-714 verify_buffer_sbat (char *data, int datasize, Link Here
709
709
710
	Section = context->FirstSection;
710
	Section = context->FirstSection;
711
	for (i = 0; i < context->NumberOfSections; i++, Section++) {
711
	for (i = 0; i < context->NumberOfSections; i++, Section++) {
712
		if ((uint64_t)&Section[1] > (uint64_t)data + datasize) {
713
			perror(L"Section exceeds bounds of image\n");
714
			return EFI_UNSUPPORTED;
715
		}
716
712
		if (CompareMem(Section->Name, ".sbat\0\0\0", 8) != 0)
717
		if (CompareMem(Section->Name, ".sbat\0\0\0", 8) != 0)
713
			continue;
718
			continue;
714
719
715
- 

Return to bug 1215102