u_vbuf_mgr: fix segfault
authorMarek Olšák <maraeo@gmail.com>
Sat, 12 Feb 2011 02:04:21 +0000 (03:04 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 12 Feb 2011 02:08:39 +0000 (03:08 +0100)
commit20a78b68a3271d7a66fdf1e55c5882b8c12dfb8d
treee59d6433e9aff23911b9a3f2c040a1fb7c4b6a73
parent3803295fc2b9c517e80aa46f2338308e23e64e4a
u_vbuf_mgr: fix segfault

max_index could have been less than min_index, which later caused integer
underflow followed by a segfault in memcpy.
src/gallium/auxiliary/util/u_vbuf_mgr.c