Merge #14398: Fix size truncation and overflow bugs in bz2 module.