Bug 9153

Summary: libX11 (with XCB backend) accesses freed memory
Product: xorg Reporter: Tilman Sauerbeck <tilman>
Component: Lib/XlibAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: josh
Version: gitKeywords: patch
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Patch none

Description Tilman Sauerbeck 2006-11-25 04:17:21 UTC
In src/xcb_io.c, _XReply() may free(current), but current is later accessed
unconditionally.

I'm attaching a patch which seems to work, but I'm not sure whether it's correct.
Comment 1 Tilman Sauerbeck 2006-11-25 04:18:22 UTC
Created attachment 7896 [details] [review]
Patch
Comment 2 Jamey Sharp 2006-11-25 05:32:04 UTC
Good catch. Your patch seems fine to me, so I've pushed it. Thanks for the report!

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.