This is an archive of the discontinued LLVM Phabricator instance.

Fixed a roll-over on size_t in getNewUninitMemBuffer()
ClosedPublic

Authored by slydiman on Mar 10 2022, 11:49 AM.

Details

Summary

This patch fixes a roll-over on size_t in WritableMemoryBuffer::getNewUninitMemBuffer().

Diff Detail

Event Timeline

slydiman created this revision.Mar 10 2022, 11:49 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 10 2022, 11:49 AM
slydiman requested review of this revision.Mar 10 2022, 11:49 AM

Thanks for spotting this. At first I was a bit surprised by usage of *rollover* term instead of *overflow* but I guess it's an established term.

This revision is now accepted and ready to land.Mar 10 2022, 11:44 PM
This revision was landed with ongoing or failed builds.Mar 11 2022, 1:17 AM
This revision was automatically updated to reflect the committed changes.