Coverity #490: Fix a range check in xf86vidmode extension.
This commit is contained in:
parent
152090ce44
commit
a3ef63696c
|
@ -18,6 +18,9 @@
|
||||||
* xfixes/xfixes.c:
|
* xfixes/xfixes.c:
|
||||||
Coverity #487: Check version number correctly.
|
Coverity #487: Check version number correctly.
|
||||||
|
|
||||||
|
* hw/xfree86/common/xf86VidMode.c:
|
||||||
|
Coverity #490: Fix a range check in xf86vidmode extension.
|
||||||
|
|
||||||
2006-03-15 Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
2006-03-15 Benjamin Herrenschmidt <benh@kernel.crashing.org>
|
||||||
|
|
||||||
* hw/xfree86/dri/dri.c: (DRIExtensionInit):
|
* hw/xfree86/dri/dri.c: (DRIExtensionInit):
|
||||||
|
|
|
@ -183,7 +183,7 @@ VidModeGetDotClock(int scrnIndex, int Clock)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
pScrn = xf86Screens[scrnIndex];
|
pScrn = xf86Screens[scrnIndex];
|
||||||
if ((pScrn->progClock) || (Clock > MAXCLOCKS))
|
if ((pScrn->progClock) || (Clock >= MAXCLOCKS))
|
||||||
return Clock;
|
return Clock;
|
||||||
else
|
else
|
||||||
return pScrn->clock[Clock];
|
return pScrn->clock[Clock];
|
||||||
|
|
Loading…
Reference in New Issue