I'm not sure why yet, but when using angle in skia, getIntegerv(GL_MAX_VERTEX_ATTRIBS, &maxVertexAttribs) sometimes fails, and when that happens we attempt to allocate and array with the size of maxVertexAttribs, which is uninitialized, which could be huge. Prevent this by initializing the variable. Also sweep through other similar calls and ensure that these use initialized values (test code has not been updated) BUG=skia:4380 Change-Id: If1f3cf72f2b2829ad3933637af8778d574a20f61 Reviewed-on: https://chromium-review.googlesource.com/307239Reviewed-by:Jamie Madill <jmadill@chromium.org> Tryjob-Request: Jamie Madill <jmadill@chromium.org> Tryjob-Request: Dian Xiang <dianx@google.com> Tested-by:
Hendrik Wagenaar <hendrikw@chromium.org>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| WindowTest | Loading commit data... | |
| hello_triangle | Loading commit data... | |
| mip_map_2d | Loading commit data... | |
| multi_texture | Loading commit data... | |
| multi_window | Loading commit data... | |
| multiple_draw_buffers | Loading commit data... | |
| particle_system | Loading commit data... | |
| post_sub_buffer | Loading commit data... | |
| sample_util | Loading commit data... | |
| shader_translator | Loading commit data... | |
| simple_instancing | Loading commit data... | |
| simple_texture_2d | Loading commit data... | |
| simple_texture_cubemap | Loading commit data... | |
| simple_vertex_shader | Loading commit data... | |
| stencil_operations | Loading commit data... | |
| tex_redef_microbench | Loading commit data... | |
| texture_wrap | Loading commit data... | |
| tri_fan_microbench | Loading commit data... | |
| samples.gyp | Loading commit data... |