Validate data slice length before Metal texture upload
Prevents potential out-of-bounds read by checking that the data slice
is at least bytes_per_row * height before passing it to Metal's
replaceRegion:withBytes:bytesPerRow: API.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
authored by
pierrelf.com
tangled.org
57779660
ec915d79