diff options
author | Eric Anholt <eric@anholt.net> | 2016-08-13 23:46:25 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2016-11-05 11:49:30 -0700 |
commit | 9a10666941ea4bbec03205609d1b578a749251c6 (patch) | |
tree | 5f4e09b35147aeb8c97ca4564394bb6d93c8f81c /components/script/dom/webglframebuffer.rs | |
parent | 3277c5281cf7d4345d8c0eb11a8f451a5796eb3e (diff) | |
download | servo-9a10666941ea4bbec03205609d1b578a749251c6.tar.gz servo-9a10666941ea4bbec03205609d1b578a749251c6.zip |
webgl: Throw an error on readPixels(width < 0 || height < 0)
Otherwise gleam will try to allocate a negative size area for the
result, and we'll panic with oom.
Diffstat (limited to 'components/script/dom/webglframebuffer.rs')
0 files changed, 0 insertions, 0 deletions