If geometries has size 0 or whenever working on the first geometry, the height can be set to INT_MAX - INT_MIN, which cannot fit in a signed integer. We need to avoid this by specializing those cases.
Pull request: https://github.com/WebKit/WebKit/pull/13329
<rdar://problem/109041952>