Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e3fd2ac242daa17f83f6b911a48cf9db9c0dcbeb
https://github.com/WebKit/WebKit/commit/e3fd2ac242daa17f83f6b911a48cf9db9c0dcbeb
Author: Mike Wyrzykowski <[email protected]>
Date: 2025-02-04 (Tue, 04 Feb 2025)
Changed paths:
A LayoutTests/fast/webgpu/nocrash/fuzz-286967-expected.txt
A LayoutTests/fast/webgpu/nocrash/fuzz-286967.html
M Source/WebGPU/WebGPU/Device.mm
Log Message:
-----------
[WebGPU] drawIndexed validation allows baseVertex which result in negative
final vertices
https://bugs.webkit.org/show_bug.cgi?id=286967
rdar://144077021
Reviewed by Tadeu Zagallo.
Strip index formats, which use 2^16 - 1 or 2^32 - 1 to denote the restart
value, allowed for bypassing validation logic. Avoid this by ensuring
the resulting sum would not be negative when the calculation is performed
at 32-bit signed integer arithmetic.
* LayoutTests/fast/webgpu/nocrash/fuzz-286967-expected.txt: Added.
* LayoutTests/fast/webgpu/nocrash/fuzz-286967.html: Added.
Add regression test.
* Source/WebGPU/WebGPU/Device.mm:
Canonical link: https://commits.webkit.org/289855@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes