diff options
author | Chris Wilson <[email protected]> | 2009-10-17 08:25:48 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2009-10-17 08:26:54 +0100 |
commit | 60a39b6799c72430851d92f93758e2f25487a0f4 (patch) | |
tree | ea78844f5a13d84499ff920c5782a8be504e6b3f /src/mesa/drivers/dri/intel/intel_batchbuffer.h | |
parent | a335d334d45701a42c283257fa44f2f7148e186d (diff) |
intel: Disallow relocations to the byte beyond the end of the buffer
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_batchbuffer.h')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_batchbuffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.h b/src/mesa/drivers/dri/intel/intel_batchbuffer.h index 9a619fbd5cf..d4899aab7fa 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.h +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.h @@ -157,7 +157,7 @@ intel_batchbuffer_require_space(struct intel_batchbuffer *batch, #define OUT_BATCH(d) intel_batchbuffer_emit_dword(intel->batch, d) #define OUT_RELOC(buf, read_domains, write_domain, delta) do { \ - assert((unsigned) (delta) <= buf->size); \ + assert((unsigned) (delta) < buf->size); \ intel_batchbuffer_emit_reloc(intel->batch, buf, \ read_domains, write_domain, delta); \ } while (0) |