Merge pull request #539 from libexpat/prevent-more-integer-overflows

[CVE-2022-22822 to CVE-2022-22827] lib: Prevent more integer overflows