Summary: | XQueryColors doesn't bounds-check its ncolors argument | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Jamey Sharp <jamey> | ||||||
Component: | Lib/Xlib | Assignee: | Xorg Project Team <xorg-team> | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | high | CC: | josh, matthieu.herrb | ||||||
Version: | git | Keywords: | patch | ||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Whiteboard: | 2011BRB_Reviewed | ||||||||
i915 platform: | i915 features: | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 16399 | ||||||||
Attachments: |
|
Description
Jamey Sharp
2006-11-25 19:30:52 UTC
Created attachment 7902 [details] [review] Kusanagi Kouichi's suggested fix In the Debian bug report for this issue, Kusanagi Kouichi <slash@ma.neweb.ne.jp> provided this proposed patch; I missed it on first reading of the mail. On quick inspection, it looks like the right fix, except that ideally it would use an async reply handler to issue all the requests in one round-trip. I'm also not sure how apps would deal with multiple X errors from a single call to XQueryColors. Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future. yeah, this should get fixed up for 7.5. Sent this to the mailing list. This bug report's not doing us any good, so I'll close it. wtf. Created attachment 41238 [details] [review] patch v2 Use big request if the server supports it. Could you please send this to xorg-devel for review, so we can close this up? Has now been pushed to git master: http://cgit.freedesktop.org/xorg/lib/libX11/commit/?id=87e10a7b9a97c951ab4d477f61177779ac0a6a66 |
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.