Summary: | XPolygonRegion double free segv | ||||||
---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Caolán McNamara <caolanm> | ||||
Component: | Lib/Xlib | Assignee: | Xorg Project Team <xorg-team> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | high | CC: | mharris | ||||
Version: | 6.8.99.3 | ||||||
Hardware: | x86 (IA32) | ||||||
OS: | Linux (All) | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 1690 | ||||||
Attachments: |
|
Description
Caolán McNamara
2005-11-22 19:24:34 UTC
Created attachment 3872 [details]
sample code to reproduce
Code similiar to this causes OOo impress 2.0 to crash on occassion
Works using libX11 from FC-4 xorg-x11 6.8.2 Thanks Caolan! The sample code helped me track down the problem -- it turned out to be that Xlib requires not only malloc(0) return a valid pointer, but also realloc(ptr,0) return a valid pointer. However, most systems treat realloc(ptr,0) as free(ptr). I fixed it by updating the macro to set the MALLOC_0_RETURNS_NULL define. |
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.