[webkit-changes] [WebKit/WebKit] 1a18bd: Prevent integer overflow in runVertexBufferValidat...
darryl-apple
noreply at github.com
Fri May 31 14:39:21 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1a18bdf5a543ddaec95484da647f03af11b41f0c
https://github.com/WebKit/WebKit/commit/1a18bdf5a543ddaec95484da647f03af11b41f0c
Author: Darryl Parkinson <d_parkinson at apple.com>
Date: 2024-05-31 (Fri, 31 May 2024)
Changed paths:
M Source/WebGPU/WebGPU/RenderBundleEncoder.mm
M Source/WebGPU/WebGPU/RenderPassEncoder.mm
Log Message:
-----------
Prevent integer overflow in runVertexBufferValidation by using CheckedNumerics
rdar://129055369
Reviewed by Mike Wyrzykowski.
Use CheckedSum for addition in runVertexBufferValidation to prevent a possible integer overflow of strideCount
* Source/WebGPU/WebGPU/RenderBundleEncoder.mm:
(WebGPU::RenderBundleEncoder::runVertexBufferValidation):
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::runVertexBufferValidation):
(WebGPU::RenderPassEncoder::draw):
Canonical link: https://commits.webkit.org/279595@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list