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

« back to all changes in this revision

Viewing changes to src/mesa/main/api_arrayelt.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:
1643
1643
   const struct _glapi_table * const disp = GET_DISPATCH();
1644
1644
   GLboolean do_map;
1645
1645
 
 
1646
   /* If PrimitiveRestart is enabled and the index is the RestartIndex
 
1647
    * then we call PrimitiveRestartNV and return.
 
1648
    */
 
1649
   if (ctx->Array.PrimitiveRestart && (elt == ctx->Array.RestartIndex)) {
 
1650
      CALL_PrimitiveRestartNV((struct _glapi_table *)disp, ());
 
1651
      return;
 
1652
   }
 
1653
 
1646
1654
   if (actx->NewState) {
1647
1655
      assert(!actx->mapped_vbos);
1648
1656
      _ae_update_state( ctx );
1649
1657
   }
1650
1658
 
1651
 
   /* Determine if w need to map/unmap VBOs */
 
1659
   /* Determine if we need to map/unmap VBOs */
1652
1660
   do_map = actx->nr_vbos && !actx->mapped_vbos;
1653
1661
 
1654
1662
   if (do_map)