diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2014-08-14 16:42:05 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2014-08-14 16:46:48 +0200 |
commit | b1697434348799b0808a6c9e9a899394075b980c (patch) | |
tree | 81e300f8698b9cbbf1765a89adadd3e0609b465d /src | |
parent | 0825d98744b20a20af7bd81d347334ab4a1de015 (diff) |
vmware/legacy: Fix out of bound array indexing
Spotted by coverity.
Reported-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vmwarevideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmwarevideo.c b/src/vmwarevideo.c index 261e579..816f1ca 100644 --- a/src/vmwarevideo.c +++ b/src/vmwarevideo.c @@ -837,7 +837,7 @@ vmwareVideoPlay(ScrnInfoPtr pScrn, VMWAREVideoPtr pVid, cmdSetRegs.body.streamId = pVid->streamId; items = cmdSetRegs.body.items; - for (i = SVGA_VIDEO_ENABLED; i < SVGA_VIDEO_NUM_REGS; i++) { + for (i = SVGA_VIDEO_ENABLED; i < SVGA_VIDEO_DATA_GMRID; i++) { items[i].regId = i; } |