fix(gpu): bound embedded section reads

Fixes #6657
This commit is contained in:
morluto committed 2026-10-23 19:18:47 +08:00
1 parent b443b5a89b
commit 8695ca8257
3 files changed
+86 -2

No files matched your search

+4 -1
View File
@@ -197,7 +197,10 @@ export class GpuInventory {
const borrowed: GpuSource = {
size,
containerId: source.containerId,
read: (start, length) => source.read(offset + start, length),
read: (start, length) => {
checkGpuRange(size, start, length);
return source.read(offset + start, length);
},
};
// A section is a coordinate space with an explicit physical backing, including PE short names.
const row = gpuObject(source, {