svga: Prevent buffer overflow in buffer ranges.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 27 Jan 2010 15:41:25 +0000 (15:41 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 22 Feb 2010 21:46:09 +0000 (21:46 +0000)
commit422167a9b0dc5b6da7bc7c47621b5da1bc6d315b
tree2bbc72ddb6eaacc8751d393f47b94122e5a6f338
parent12d5203bb39a6146c5fd08b66f49b4fc1feb1162
svga: Prevent buffer overflow in buffer ranges.

Do this by extending the nearest range to cover the new range.

This fixes an access fault in Call of Duty which was doing many disjoint
glBufferSubData calls.
src/gallium/drivers/svga/svga_screen_buffer.c