A bugfix for r61813, it would fail if the data size was >=2**32.