Summary: | [PATCH] Wrong usage of memcpy(3) in fb/fbblt.c | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Adam Tkac <vonsch> | ||||||
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | medium | CC: | thierry.vignaud | ||||||
Version: | unspecified | ||||||||
Hardware: | Other | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 36141 | ||||||||
Attachments: |
|
Description
Adam Tkac
2011-04-12 07:48:39 UTC
Created attachment 45528 [details] [review] Proposed patch Please submit patches to xorg-devel for review & application, as described in http://www.x.org/wiki/Development/Documentation/SubmittingPatches and http://www.x.org/wiki/XServer#DevelopmentProcess . (It's not necessary to file bug reports for every patch. X.Org generally uses bug reports to track issues needing investigation still.) Created attachment 50248 [details] [review] This uses memcpy, but avoids overlap as required Adam Jackson discovered that memmove was about twice as slow as memcpy, and so finding cases which can use memcpy remains important for performance. This patch avoids all overlapping copies while retaining the use of memcpy for non-overlapping cases, preserving most of the performance benefit. I'd like to verify that it resolves the problem you're having, please give it a try. Sorry for late response. I just tried to build Xvnc against Fedora's Xorg 1.10.4-1.fc15 (which should have the patch included if I read source correctly) and everything seems fine for me, I see no FB corruptions. So you can close this bug as fixed. Thanks for verifying the fix. |
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.