[edk2] [patch] BaseTools/VfrCompile: Update MAX_PATH to a bigger one

Dandan Bi posted 1 patch 7 years, 6 months ago
Failed in applying to current master (apply log)
BaseTools/Source/C/VfrCompile/EfiVfr.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[edk2] [patch] BaseTools/VfrCompile: Update MAX_PATH to a bigger one
Posted by Dandan Bi 7 years, 6 months ago
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=579

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Daniel D\ufffdaz <daniel.diaz@linaro.org>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
---
 BaseTools/Source/C/VfrCompile/EfiVfr.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/BaseTools/Source/C/VfrCompile/EfiVfr.h b/BaseTools/Source/C/VfrCompile/EfiVfr.h
index d187902..af03f28 100644
--- a/BaseTools/Source/C/VfrCompile/EfiVfr.h
+++ b/BaseTools/Source/C/VfrCompile/EfiVfr.h
@@ -1,9 +1,9 @@
 /** @file
 Defines and prototypes for the UEFI VFR compiler internal use.
 
-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
 This program and the accompanying materials                          
 are licensed and made available under the terms and conditions of the BSD License         
 which accompanies this distribution.  The full text of the license may be found at        
 http://opensource.org/licenses/bsd-license.php                                            
                                                                                           
@@ -17,11 +17,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 
 #include "Common/UefiBaseTypes.h"
 #include "Common/UefiInternalFormRepresentation.h"
 #include "Common/MdeModuleHii.h"
 
-#define MAX_PATH                 255
+#define MAX_PATH                 500
 #define MAX_VFR_LINE_LEN         4096
 
 #define EFI_IFR_MAX_LENGTH       0xFF
 #define MAX_IFR_EXPRESSION_DEPTH 0x9
 
-- 
1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
Re: [edk2] [patch] BaseTools/VfrCompile: Update MAX_PATH to a bigger one
Posted by Gao, Liming 7 years, 6 months ago
Dandan:
  Please use LongFilePath() to convert file path. Then, MAX_PATH limitation can be removed. 

Thanks
Liming
>-----Original Message-----
>From: Bi, Dandan
>Sent: Monday, June 05, 2017 2:26 PM
>To: edk2-devel@lists.01.org
>Cc: Dong, Eric <eric.dong@intel.com>; Gao, Liming <liming.gao@intel.com>;
>Daniel D�az <daniel.diaz@linaro.org>
>Subject: [patch] BaseTools/VfrCompile: Update MAX_PATH to a bigger one
>
>REF: https://bugzilla.tianocore.org/show_bug.cgi?id=579
>
>Cc: Eric Dong <eric.dong@intel.com>
>Cc: Liming Gao <liming.gao@intel.com>
>Cc: Daniel Díaz <daniel.diaz@linaro.org>
>Contributed-under: TianoCore Contribution Agreement 1.0
>Signed-off-by: Dandan Bi <dandan.bi@intel.com>
>---
> BaseTools/Source/C/VfrCompile/EfiVfr.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/BaseTools/Source/C/VfrCompile/EfiVfr.h
>b/BaseTools/Source/C/VfrCompile/EfiVfr.h
>index d187902..af03f28 100644
>--- a/BaseTools/Source/C/VfrCompile/EfiVfr.h
>+++ b/BaseTools/Source/C/VfrCompile/EfiVfr.h
>@@ -1,9 +1,9 @@
> /** @file
> Defines and prototypes for the UEFI VFR compiler internal use.
>
>-Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
>+Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
> This program and the accompanying materials
> are licensed and made available under the terms and conditions of the BSD
>License
> which accompanies this distribution.  The full text of the license may be found
>at
> http://opensource.org/licenses/bsd-license.php
>
>@@ -17,11 +17,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY
>KIND, EITHER EXPRESS OR IMPLIED.
>
> #include "Common/UefiBaseTypes.h"
> #include "Common/UefiInternalFormRepresentation.h"
> #include "Common/MdeModuleHii.h"
>
>-#define MAX_PATH                 255
>+#define MAX_PATH                 500
> #define MAX_VFR_LINE_LEN         4096
>
> #define EFI_IFR_MAX_LENGTH       0xFF
> #define MAX_IFR_EXPRESSION_DEPTH 0x9
>
>--
>1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel