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

« back to all changes in this revision

Viewing changes to src/gallium/drivers/nv50/nv50_pc_emit.c

  • 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:
865
865
   assert(SFILE(i, 0) == NV_FILE_GPR);
866
866
 
867
867
   if (!i->is_long) {
 
868
      assert(i->opcode == NV_OP_RCP);
868
869
      emit_form_MUL(pc, i);
869
 
      assert(i->opcode == NV_OP_RCP && !src0->mod);
 
870
      if (src0->mod & NV_MOD_NEG) pc->emit[0] |= 0x00400000;
 
871
      if (src0->mod & NV_MOD_ABS) pc->emit[0] |= 0x00008000;
870
872
      return;
871
873
   }
872
874