we (web engine): Experimental web browser project to understand the limits of Claude

Validate data slice length before Metal texture upload #292

Open pierrelf.com
targeting main
Open opened by and assigned to pierrelf.com
targeting main

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.