mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-25 18:48:42 +02:00
ImageTool/PeEmit: Force-terminate section names
This commit is contained in:
parent
6a22eca730
commit
db7b4da183
@ -400,6 +400,7 @@ ToolImageEmitPeSection (
|
|||||||
Segment->Name,
|
Segment->Name,
|
||||||
sizeof (SectionHeader->Name)
|
sizeof (SectionHeader->Name)
|
||||||
);
|
);
|
||||||
|
SectionHeader->Name[ARRAY_SIZE (SectionHeader->Name) - 1] = 0;
|
||||||
|
|
||||||
SectionHeader->VirtualSize = Segment->ImageSize;
|
SectionHeader->VirtualSize = Segment->ImageSize;
|
||||||
SectionHeader->VirtualAddress = Segment->ImageAddress;
|
SectionHeader->VirtualAddress = Segment->ImageAddress;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user