This is an archive of the discontinued LLVM Phabricator instance.

[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,
because fails to read memory regon name and accesses
MemoryRegions's element which is nullptr.
Patch fixes it.

Diff Detail

Repository
rLLD LLVM Linker

Event Timeline

grimar created this revision.Feb 28 2018, 4:29 AM
grimar planned changes to this revision.Feb 28 2018, 5:11 AM
grimar updated this revision to Diff 136281.Feb 28 2018, 5:17 AM
  • Added one more broken case.
ruiu accepted this revision.Feb 28 2018, 9:51 AM

LGTM

This revision is now accepted and ready to land.Feb 28 2018, 9:51 AM
This revision was automatically updated to reflect the committed changes.