diff options
author | Ilia Mirkin <[email protected]> | 2014-01-21 19:45:18 -0500 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2014-01-27 16:40:42 +0100 |
commit | 3de97ce9200e9fe96891e7e92ec83f0fc38d8693 (patch) | |
tree | 3a8a1c9694b29764b769badfadc9290c3ebab693 /src/gallium/auxiliary/util/u_transfer.c | |
parent | 4dd445f1cf80292f10eda53665cefc2a674d838d (diff) |
translate: deal with size overflows by casting to ptrdiff_t
This was discovered as a result of the draw-elements-base-vertex-neg
piglit test, which passes very negative offsets in, followed up by large
indices. The nouveau code correctly adjusts the pointer, but the
translate code needs to do the proper inverse correction. Similarly fix
up the SSE code to do a 64-bit multiply to compute the proper offset.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_transfer.c')
0 files changed, 0 insertions, 0 deletions