ArmPlatformPkg/Ds5: Increase path length to 400

Increase length of path that can be read from system from 200 to 400 to
allow for longer build paths.

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
Jeff Brasen 2020-02-07 14:32:08 -07:00 committed by mergify[bot]
parent 7dcf32c1ee
commit c10f7f77b0
1 changed files with 3 additions and 3 deletions

View File

@ -81,7 +81,7 @@ class EfiSectionTE:
filename = self.base_te + debug_rva + 0xc filename = self.base_te + debug_rva + 0xc
else: else:
filename = self.base_te + debug_rva + 0x10 filename = self.base_te + debug_rva + 0x10
filename = struct.unpack("200s", self.ec.getMemoryService().read(filename, 200, 32))[0] filename = struct.unpack("400s", self.ec.getMemoryService().read(filename, 400, 32))[0]
return filename[0:string.find(filename,'\0')] return filename[0:string.find(filename,'\0')]
def get_debug_elfbase(self): def get_debug_elfbase(self):
@ -119,7 +119,7 @@ class EfiSectionPE32:
filename = self.base_pe32 + debug_rva + 0xc filename = self.base_pe32 + debug_rva + 0xc
else: else:
filename = self.base_pe32 + debug_rva + 0x10 filename = self.base_pe32 + debug_rva + 0x10
filename = struct.unpack("200s", self.ec.getMemoryService().read(str(filename), 200, 32))[0] filename = struct.unpack("400s", self.ec.getMemoryService().read(str(filename), 400, 32))[0]
return filename[0:string.find(filename,'\0')] return filename[0:string.find(filename,'\0')]
def get_debug_elfbase(self): def get_debug_elfbase(self):
@ -154,7 +154,7 @@ class EfiSectionPE64:
filename = self.base_pe64 + debug_rva + 0xc filename = self.base_pe64 + debug_rva + 0xc
else: else:
filename = self.base_pe64 + debug_rva + 0x10 filename = self.base_pe64 + debug_rva + 0x10
filename = struct.unpack("200s", self.ec.getMemoryService().read(str(filename), 200, 32))[0] filename = struct.unpack("400s", self.ec.getMemoryService().read(str(filename), 400, 32))[0]
return filename[0:string.find(filename,'\0')] return filename[0:string.find(filename,'\0')]
def get_debug_elfbase(self): def get_debug_elfbase(self):