Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(753)

Unified Diff: src/platform/vboot_reference/include/firmware_image.h

Issue 744002: Vboot Reference: Make length types explicitly sized. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/platform/vboot_reference/include/firmware_image.h
diff --git a/src/platform/vboot_reference/include/firmware_image.h b/src/platform/vboot_reference/include/firmware_image.h
index 9e0db88bd9bb1e735f18d2f2f0d5cba0c2fd9966..7e0c3c9449acf6749c7232979ec9d7fab660be1b 100644
--- a/src/platform/vboot_reference/include/firmware_image.h
+++ b/src/platform/vboot_reference/include/firmware_image.h
@@ -36,7 +36,7 @@ typedef struct FirmwareImage {
/* Firmware Preamble. */
uint16_t firmware_version; /* Firmware Version# for preventing rollbacks.*/
- uint32_t firmware_len; /* Length of the rest of the R/W firmware data. */
+ uint64_t firmware_len; /* Length of the rest of the R/W firmware data. */
uint8_t preamble[FIRMWARE_PREAMBLE_SIZE]; /* Remaining preamble data.*/
uint8_t* preamble_signature; /* Signature over the preamble. */
@@ -81,7 +81,7 @@ uint8_t* GetFirmwarePreambleBlob(const FirmwareImage* image);
*
* Caller owns the returned pointer and must Free() it.
*/
-uint8_t* GetFirmwareBlob(const FirmwareImage* image, int* blob_len);
+uint8_t* GetFirmwareBlob(const FirmwareImage* image, uint64_t* blob_len);
/* Write firmware data from [image] into a file named [input_file].
*

Powered by Google App Engine
This is Rietveld 408576698