This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Overallocation of am_pm array in locale.cpp
ClosedPublic

Authored by dcdillon on Jan 2 2017, 8:34 AM.

Details

Summary

Changed array size from 24 to 2 in init_am_pm() and init_wam_pm()

Diff Detail

Event Timeline

dcdillon updated this revision to Diff 82806.Jan 2 2017, 8:34 AM
dcdillon retitled this revision from to [libc++] Overallocation of am_pm array in locale.cpp.
dcdillon updated this object.
dcdillon added a reviewer: howard.hinnant.
dcdillon added a subscriber: cfe-commits.
mclow.lists edited edge metadata.Jan 3 2017, 7:17 AM

This looks fine to me.
All the other places that use this (or related functionality) have a rank of 2.

Interestingly enough, this has been there since "the beginning of time" (the initial import of libc++ into the LLVM subversion repo)

mclow.lists accepted this revision.Jan 3 2017, 7:17 AM
mclow.lists edited edge metadata.
This revision is now accepted and ready to land.Jan 3 2017, 7:17 AM
mclow.lists closed this revision.Jan 11 2018, 9:18 AM

Committed as r322295