Add buffer boundary checks before reading frame data to prevent out-of-bounds reads on malformed MDL files. Fixes #6172 (CVE-2025-5200) Signed-off-by: mapengyuan <mapengyuan@xfusion.com> Co-authored-by: Kim Kulling <kimkulling@users.noreply.github.com>