Bug 2489 - Invalid bound check of driver defined ioctls in drm_ioctl
Summary: Invalid bound check of driver defined ioctls in drm_ioctl
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-07 13:00 UTC by Aapo Tahkola
Modified: 2005-02-06 19:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Aapo Tahkola 2005-02-07 13:00:48 UTC
--- drm_drv.c~	Mon Dec 13 11:17:28 2004
+++ drm_drv.c	Mon Dec 13 11:15:41 2004
@@ -595,7 +595,7 @@
 	if (nr < DRIVER_IOCTL_COUNT)
 		ioctl = &drm_ioctls[nr];
 	else if ((nr >= DRM_COMMAND_BASE)
-		 || (nr < DRM_COMMAND_BASE + dev->driver->num_ioctls))
+		 && (nr < DRM_COMMAND_BASE + dev->driver->num_ioctls))
 		ioctl = &dev->driver->ioctls[nr - DRM_COMMAND_BASE];
 	else
 		goto err_i1;
Comment 1 Dave Airlie 2005-02-07 14:56:17 UTC
committed...


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.