-
Committer:
Facebook Github Bot
-
Author(s):
Edwin Smith
-
Date:
2018-07-19 18:07:56 UTC
-
Revision ID:
git-v1:46c141a8a519d022c0b177201cb8bd9497cd1c38
Fix visitContiguousRanges() for empty and single chunk containers
Summary:
lastOccupiedChunks has UB with an empty container, because
the end() iterator itemPtr_ is null.
And with a single chunk, we must enter the iteration loop.
Reviewed By: nbronson
Differential Revision: D8897447
fbshipit-source-id: 7e7fd06ec7a588236eebf28f43af9ef4ab2d39cd