Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upwebgl: Uninitialized data leak from ReadPixels() #13901
Closed
Labels
Comments
anholt
added a commit
to anholt/servo
that referenced
this issue
Nov 5, 2016
This fixes the crash in read-pixels-pack-alignment (which was trying to read out of bounds). Fixes servo#13901
bors-servo
added a commit
that referenced
this issue
Nov 5, 2016
webgl: out-of-bounds readPixels() fixes <!-- Please describe your changes on the following line: --> Fix crashes in two WebGL readPixels() tests by adding framebuffer size validation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13901 <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14081) <!-- Reviewable:end -->
anholt
added a commit
to anholt/servo
that referenced
this issue
Nov 5, 2016
This fixes the crash in read-pixels-pack-alignment (which was trying to read out of bounds). Fixes servo#13901
bors-servo
added a commit
that referenced
this issue
Nov 9, 2016
webgl: out-of-bounds readPixels() fixes <!-- Please describe your changes on the following line: --> Fix crashes in two WebGL readPixels() tests by adding framebuffer size validation. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #13901 <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14081) <!-- Reviewable:end -->
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From the GLES 2.0.25 spec on
glReadPixels():but from the WebGL spec:
This is triggered by the
object-deletion-behaviour.htmltest oncecheckFramebufferStatus()starts returningGL_FRAMEBUFFER_COMPLETE.