summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_opt_algebraic.py
diff options
context:
space:
mode:
authorMark Janes <[email protected]>2019-06-03 16:59:45 -0700
committerMark Janes <[email protected]>2019-06-04 12:49:38 -0700
commitc9c1e26106478258d8a91fe8fc5c69d8c3fa5206 (patch)
tree711c21b515e60bfabd7ed0a03caa9ce9010a3fee /src/compiler/nir/nir_opt_algebraic.py
parentf4ef34f207d15bcade7aed644328035dd0f2cc16 (diff)
mesa: prevent common string formatting security issues
Adds a compile-time error for obvious security issues like: printf(string_var); The proposed flag is more tolerant than -Wformat-nonliteral. Specifically, it tolerates common mesa formatting like: static const char *shader_template = "really long string %d"; printf(shader_template, uniform_number); Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110833 Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_opt_algebraic.py')
0 files changed, 0 insertions, 0 deletions