Bug 19063

Summary: data from readdir used after closedir
Product: xorg Reporter: Pierre Willenbrock <pierre>
Component: Driver/intelAssignee: Wang Zhenyu <zhenyu.z.wang>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium Keywords: patch
Version: git   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
closedir only after finishing use of any results from readdir none

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.