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.
Supersedes PR 3mi465e5w6u2h (rebased to resolve merge conflict).
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.
Supersedes PR 3mi465e5w6u2h (rebased to resolve merge conflict).
This pull request has no versions submitted yet.