This is an archive of the discontinued LLVM Phabricator instance.

[flang] Impose DATA initialization size limit to avoid crashing
ClosedPublic

Authored by klausler on Dec 15 2022, 11:49 AM.

Details

Summary

Impose a large but finite limit on the size of a variable being
initialized in a DATA statement to provide a readable error message
for artificial test cases that's better than a memory allocation
failure crash.

Diff Detail

Event Timeline

klausler created this revision.Dec 15 2022, 11:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 15 2022, 11:49 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Dec 15 2022, 11:49 AM
vdonaldson accepted this revision.Dec 15 2022, 1:02 PM
This revision is now accepted and ready to land.Dec 15 2022, 1:02 PM
This revision was landed with ongoing or failed builds.Dec 17 2022, 7:27 AM
This revision was automatically updated to reflect the committed changes.