diff options
author | José Fonseca <jfonseca@vmware.com> | 2011-03-31 14:40:25 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-04-01 20:18:18 +0100 |
commit | 3733da31e8b4405b65e1b6ca3b6599ecc5af5fe7 (patch) | |
tree | 48e13947e294409416ddfa27f0f3458bf8bb54f9 /src/gallium/auxiliary/draw/draw_pt_fetch.c | |
parent | 4a7f013f9db793dab8dbc9f71646dab49f12ed2f (diff) | |
download | external_mesa3d-3733da31e8b4405b65e1b6ca3b6599ecc5af5fe7.zip external_mesa3d-3733da31e8b4405b65e1b6ca3b6599ecc5af5fe7.tar.gz external_mesa3d-3733da31e8b4405b65e1b6ca3b6599ecc5af5fe7.tar.bz2 |
draw: Prevent out-of-bounds vertex buffer access.
Based on some code and ideas from Keith Whitwell.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_fetch.c b/src/gallium/auxiliary/draw/draw_pt_fetch.c index 4fa3b26..5589a82 100644 --- a/src/gallium/auxiliary/draw/draw_pt_fetch.c +++ b/src/gallium/auxiliary/draw/draw_pt_fetch.c @@ -139,7 +139,7 @@ void draw_pt_fetch_run( struct pt_fetch *fetch, ((char *)draw->pt.user.vbuffer[i] + draw->pt.vertex_buffer[i].buffer_offset), draw->pt.vertex_buffer[i].stride, - draw->pt.user.max_index); + draw->pt.max_index); } translate->run_elts( translate, |