Bug 8968

Summary: Faulty ffs() in dix/ffs.c may deadlock
Product: xorg Reporter: Jurij Smakov <jurij>
Component: Protocol/CoreAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: high    
Version: 7.1 (2006.05)   
Hardware: SPARC   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Fix for ffs() to correctly handle the case when it is called with argument of zero none

Description Jurij Smakov 2006-11-10 00:17:27 UTC
Hi,

The faulty implementation of ffs() function in dix/ffs.c will loop indefinitely
if input is 0, leading to the server deadlock under some circumstances (see
Debian bug #395564 at http://bugs.debian.org/395564 for more details).
Comment 1 Jurij Smakov 2006-11-10 00:18:48 UTC
Created attachment 7723 [details] [review]
Fix for ffs() to correctly handle the case when it is called with argument of zero
Comment 2 Daniel Stone 2006-11-11 04:08:50 UTC
pushed to master, thanks

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.