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

(-)a/httpboot.c (-2 / +7 lines)
Lines 578-584 receive_http_response(EFI_HTTP_PROTOCOL *http, VOID **buffer, UINT64 *buf_size) Link Here
578
	}
578
	}
579
579
580
	if (*buf_size == 0) {
580
	if (*buf_size == 0) {
581
		perror(L"Failed to get Content-Lenght\n");
581
		perror(L"Failed to get Content-Length\n");
582
		goto error;
583
	}
584
585
	if (*buf_size < rx_message.BodyLength) {
586
		efi_status = EFI_BAD_BUFFER_SIZE;
587
		perror(L"Invalid Content-Length\n");
582
		goto error;
588
		goto error;
583
	}
589
	}
584
590
585
- 

Return to bug 1215098