This is an archive of the discontinued LLVM Phabricator instance.

[flang] Don't fold REPEAT() when the result would be too large
ClosedPublic

Authored by klausler on Jan 27 2023, 9:56 AM.

Details

Summary

A test program shouldn't be able to crash the compiler by getting it to
fold REPEAT() with an absurdly large repetition count.

Diff Detail

Event Timeline

klausler created this revision.Jan 27 2023, 9:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2023, 9:56 AM
klausler requested review of this revision.Jan 27 2023, 9:56 AM
PeteSteinfeld accepted this revision.Jan 27 2023, 11:23 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jan 27 2023, 11:23 AM