LLD crashes with broken scripts shown in testcase,
because fails to read memory regon name and accesses
MemoryRegions's element which is nullptr.
Patch fixes it.
Details
Details
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
Paths
| Differential D43866
[ELF] - Don't crash on broken MEMORY declaration. ClosedPublic Authored by grimar on Feb 28 2018, 4:29 AM.
Details Summary LLD crashes with broken scripts shown in testcase,
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 28 2018, 9:51 AM Closed by commit rLLD326431: [ELF] - Don't crash on broken MEMORY declaration. (authored by grimar). · Explain WhyMar 1 2018, 4:38 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 136498 ELF/ScriptParser.cpp
test/ELF/linkerscript/broken-memory-declaration.s
|