mirror of
https://github.com/X11Libre/xf86-video-vmware.git
synced 2026-03-24 01:24:37 +00:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user