Fix integer overflow in chunk_split

Reviewed By: @ptarjan

Differential Revision: D1515947