Bug 8968 - Faulty ffs() in dix/ffs.c may deadlock
Summary: Faulty ffs() in dix/ffs.c may deadlock
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Protocol/Core (show other bugs)
Version: 7.1 (2006.05)
Hardware: SPARC Linux (All)
: high major
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-10 00:17 UTC by Jurij Smakov
Modified: 2006-11-11 04:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Fix for ffs() to correctly handle the case when it is called with argument of zero (272 bytes, patch)
2006-11-10 00:18 UTC, Jurij Smakov
no flags Details | Splinter Review

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.