| Summary: | [GTK][WPE] webgl/1.0.3/conformance/more/functions/copyTexImage2DBadArgs.html is crashing | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Diego Pino <dpino> | ||||
| Component: | WebGL | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | alex, clord, dino, kbr, magomez, michal.kobylecki, webkit-bug-importer, zdobersek | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=211887 | ||||||
| Attachments: |
|
||||||
|
Description
Diego Pino
2020-05-15 01:31:19 PDT
I decided to create a new ticket for this failure, independently of https://bugs.webkit.org/show_bug.cgi?id=211887, since this crash happens on GTK and WPE. Created attachment 459120 [details]
Fix for crashing copyTexImage2DBadArgs
Hi, do you plan to deliver a fix for this issue? I've come across it when running WebGL 1.0.3 tests on WPE 2.34.7. The analysis showed the reason is missing handling of incorrect level value which in the case of copyTexImage2DBadArgs test is -1. This further led to trying to access the vector element with index -1 and it ends up with a crash of course. I've worked out a potential fix (please see attached patch). It seems like it worked like that in the past but level value validation was removed at some point (see https://github.com/WebKit/WebKit/commit/96238bc353a16de3a120ebe925ecea631e97abd2#diff-559cea90f946de8eaeb87bb35e630916000e561eb725964fef24b902630b380fL4745). Thank you in advance. After replacing the WebGL backend with ANGLE the crash is fixed. The gardening commit is: https://commits.webkit.org/255008@main |