Skip to content

WIP: shader: limit the max tokens for tgsi

Pohsien Wang requested to merge (removed):MMO into master

During shader creation, limit the number of tgsi tokens to prevent out-of-memory exploit.

Ideally, we should tgsi parse/translate the shader segmentally but limit it should be sufficient.

TEST=webgl_aquarium

TEST=piglit

Edited by Pohsien Wang

Merge request reports