Summary: | valgrind uninitialized memory warnings reading versioned structs (XSetWMHints, XSetWMNormalHints, and XSetWMSizeHints) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | David Baron <dbaron> | ||||||
Component: | Lib/Xlib | Assignee: | Xorg Project Team <xorg-team> | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | high | Keywords: | patch | ||||||
Version: | unspecified | ||||||||
Hardware: | x86 (IA32) | ||||||||
OS: | Linux (All) | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
David Baron
2006-07-30 21:41:08 UTC
Created attachment 8435 [details] [review] patch I tested that this patch fixes the valgrind warnings when starting Mozilla in libX11 pulled from git this morning, built with --without-xcb (since xsltproc wouldn't behave during xcb compilation). I'm not sure that (USPosition|PPosition) and (USSize|PSize) are the right things to test in XSetSizeHints and XSetWMSizeHints (marked with XXX comments). Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future. In XSetWMSizeHints(), the memset() needs to be moved up by one line -- otherwise you end up with data.flags being zero all the time. Created attachment 9361 [details] [review] corrected patch Oops. Corrected per comment 3. I committed your patch in 0284b144340a455a4b5b5011d81ac5a610372291. I think the code marked with XXX is correct, so I removed those markers. |
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.