summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_suballoc.c
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2013-06-24 18:49:40 -0400
committerZack Rusin <[email protected]>2013-06-25 11:56:41 -0400
commitf96326b2f6713c21c8da9cb13d14f4842ff69578 (patch)
treef472f8df7c3d156ec2306c2361bdb8da990ba1d9 /src/gallium/auxiliary/util/u_suballoc.c
parente2b02080d80aac26a7a596dfd6adb8ff9c5912ec (diff)
draw: avoid overflows in the llvm draw loop
Before we could easily overflow if start+count>max integer. To avoid it we can just iterate over the count. This makes sure that we never crash, since most of the overflow conditions is already handled. Signed-off-by: Zack Rusin <[email protected]> Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_suballoc.c')
0 files changed, 0 insertions, 0 deletions