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

« back to all changes in this revision

Viewing changes to src/gallium/drivers/nvfx/nvfx_fragprog.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:
977
977
        if(fpc->fp->num_slots > num_texcoords)
978
978
                return FALSE;
979
979
        util_semantic_layout_from_set(fpc->fp->slot_to_generic, &set, 0, num_texcoords);
980
 
        util_semantic_table_from_layout(fpc->generic_to_slot, fpc->fp->slot_to_generic, 0, num_texcoords);
 
980
        util_semantic_table_from_layout(fpc->generic_to_slot, sizeof fpc->generic_to_slot,
 
981
                                        fpc->fp->slot_to_generic, 0, num_texcoords);
981
982
 
982
983
        memset(fpc->fp->slot_to_fp_input, 0xff, sizeof(fpc->fp->slot_to_fp_input));
983
984