Bug 19063 - data from readdir used after closedir
Summary: data from readdir used after closedir
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: All All
: medium normal
Assignee: Wang Zhenyu
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2008-12-12 15:07 UTC by Pierre Willenbrock
Modified: 2008-12-14 17:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
closedir only after finishing use of any results from readdir (774 bytes, patch)
2008-12-12 15:07 UTC, Pierre Willenbrock
no flags Details | Splinter Review

Description Pierre Willenbrock 2008-12-12 15:07:03 UTC
Created attachment 21107 [details] [review]
closedir only after finishing use of any results from readdir

i830_lvds.c uses data from readdir after closedir. closedir frees the data-structures returned from readdir.
Comment 1 Gordon Jin 2008-12-13 04:21:54 UTC
Pierre, thanks for the patch.
Comment 2 Wang Zhenyu 2008-12-14 17:15:02 UTC
thanks, pushed upstream.

commit d917583c19e2eb20a559eddaa100ce71d8fbe48c
Author: Pierre Willenbrock <pierre@pirsoft.de>
Date:   Mon Dec 15 09:08:30 2008 +0800

    closedir only after finishing use of any results from readdir


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.