~ubuntu-branches/ubuntu/precise/mesa/precise-security

« back to all changes in this revision

Viewing changes to src/glsl/linker.cpp

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers, Steve Beattie
  • Date: 2012-10-19 09:04:04 UTC
  • mfrom: (163.1.4 precise-proposed)
  • Revision ID: package-import@ubuntu.com-20121019090404-5zbjpsp6knv7zl3b
Tags: 8.0.4-0ubuntu0.2
[ Steve Beattie ]
* SECURITY UPDATE: samplers array overflow (LP: #1046933)
  - debian/patches/50-CVE-2012-2864.patch: ensure that more than
    MAX_SAMPLERS are not used
  - CVE-2012-2864

Show diffs side-by-side

added added

removed removed

Lines of Context:
2263
2263
      if (ctx->ShaderCompilerOptions[i].LowerClipDistance)
2264
2264
         lower_clip_distance(prog->_LinkedShaders[i]->ir);
2265
2265
 
2266
 
      while (do_common_optimization(prog->_LinkedShaders[i]->ir, true, false, 32))
 
2266
      unsigned max_unroll = ctx->ShaderCompilerOptions[i].MaxUnrollIterations;
 
2267
 
 
2268
      while (do_common_optimization(prog->_LinkedShaders[i]->ir, true, false, max_unroll))
2267
2269
         ;
2268
2270
   }
2269
2271