]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/GenFfs: Fix a segmentation fault from vsprintf()/vfprintf()
authorYonghong Zhu <yonghong.zhu@intel.com>
Wed, 19 Jul 2017 02:55:47 +0000 (10:55 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Tue, 1 Aug 2017 02:51:08 +0000 (10:51 +0800)
Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=536
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/GenFfs/GenFfs.c

index 91632a90620b3e268a8e7b8250bf7f86ec9df148..eaef8a2232286b6d20e29265814fd11196c3840c 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 This file contains functions required to generate a Firmware File System file.\r
 \r
-Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -116,7 +116,7 @@ Returns:
   //\r
   // Copyright declaration\r
   // \r
-  fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n");\r
+  fprintf (stdout, "Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.\n\n");\r
 \r
   //\r
   // Details Option\r
@@ -736,7 +736,7 @@ Returns:
       continue;\r
     }\r
 \r
-    Error (NULL, 0, 1000, "Unknown option", argv[0]);\r
+    Error (NULL, 0, 1000, "Unknown option", "%s", argv[0]);\r
     goto Finish;\r
   }\r
 \r