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

Unified Diff: cgpt/cmd_create.c

Issue 3594010: Address some security concerns in the cgpt tool. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git
Patch Set: A little more cleanup. Take one more look, please. Created 10 years, 2 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 | « cgpt/cmd_boot.c ('k') | cgpt/cmd_find.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cgpt/cmd_create.c
diff --git a/cgpt/cmd_create.c b/cgpt/cmd_create.c
index 1680370949b5ce40f0bcbdb8313f79731cdf738a..6dabde3aeb1fbb1f7e6527004283cab2fb497a09 100644
--- a/cgpt/cmd_create.c
+++ b/cgpt/cmd_create.c
@@ -24,7 +24,7 @@ static void Usage(void)
int cmd_create(int argc, char *argv[]) {
struct drive drive;
int zap = 0;
-
+
int c;
int errorcnt = 0;
@@ -76,7 +76,7 @@ int cmd_create(int argc, char *argv[]) {
drive.gpt.sector_bytes * GPT_ENTRIES_SECTORS);
memset(drive.gpt.secondary_entries, 0,
drive.gpt.sector_bytes * GPT_ENTRIES_SECTORS);
-
+
drive.gpt.modified |= (GPT_MODIFIED_HEADER1 | GPT_MODIFIED_ENTRIES1 |
GPT_MODIFIED_HEADER2 | GPT_MODIFIED_ENTRIES2);
« no previous file with comments | « cgpt/cmd_boot.c ('k') | cgpt/cmd_find.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698