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

Unified Diff: src/platform/vboot_reference/misclibs/file_keys.c

Issue 1578035: Change VerifyFirmware() to take separate pointers to firmware verification header and firmware data. (Closed)
Patch Set: review fixes Created 10 years, 8 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
« no previous file with comments | « no previous file | src/platform/vboot_reference/tests/big_firmware_tests.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/misclibs/file_keys.c
diff --git a/src/platform/vboot_reference/misclibs/file_keys.c b/src/platform/vboot_reference/misclibs/file_keys.c
index de2821641be3c835ca443ca47961a44e6c0618b0..4963bf4182e23c47209a07c89a156759b657896b 100644
--- a/src/platform/vboot_reference/misclibs/file_keys.c
+++ b/src/platform/vboot_reference/misclibs/file_keys.c
@@ -30,18 +30,17 @@ uint8_t* BufferFromFile(const char* input_file, uint64_t* len) {
}
if (-1 == fstat(fd, &stat_fd)) {
- debug("Couldn't stat key file\n");
+ debug("Couldn't stat file\n");
return NULL;
}
*len = stat_fd.st_size;
- /* Read entire key binary blob into a buffer. */
buf = (uint8_t*) Malloc(*len);
if (!buf)
return NULL;
if (*len != read(fd, buf, *len)) {
- debug("Couldn't read key into a buffer.\n");
+ debug("Couldn't read file into a buffer.\n");
return NULL;
}
« no previous file with comments | « no previous file | src/platform/vboot_reference/tests/big_firmware_tests.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698