[PATCH 0/4] Improve robustness of calculations related to frame size limits