compressedTexSubImage2D incorrect parameters validation
Categories
(Core :: Graphics: CanvasWebGL, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox73 | --- | wontfix |
| firefox74 | --- | unaffected |
People
(Reporter: lexa.knyazev, Assigned: jgilbert)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
Steps to reproduce:
In WebGL 2 context, when a texture is uploaded from a PBO, compressedTexSubImage2D entrypoint accepts imageSize and offset parameters.
This check:
https://hg.mozilla.org/mozilla-central/file/tip/dom/canvas/WebGLTextureUpload.cpp#l206
incorrectly expects that the PBO's length is always equal to offset+imageSize.
Actual results:
INVALID_OPERATION: ImageSize doesn't match the required upload byte size.
Expected results:
No error.
Comment 1•5 years ago
•
|
||
Hey lexa.knyazev,
Will move this over to WebGL 2 component so devs can check it out with more in-depth knowledge of how it should work.
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 2•5 years ago
|
||
Bug 1477756 may have fixed this.
| Assignee | ||
Comment 3•5 years ago
|
||
73 is affected, 74 is not.
| Assignee | ||
Comment 4•5 years ago
|
||
Description
•