Summary: | Xv PutImage buffer overflow when handling I420 images | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Daniel Drake <dan> | ||||||
Component: | Driver/geode | Assignee: | Xorg Project Team <xorg-team> | ||||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||||
Severity: | normal | ||||||||
Priority: | medium | ||||||||
Version: | unspecified | ||||||||
Hardware: | Other | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
i915 platform: | i915 features: | ||||||||
Attachments: |
|
Description
Daniel Drake
2010-08-03 15:48:13 UTC
Created attachment 37578 [details] [review] fix Fixed it. The set_bpp call is valid. We're BLTing an image from system memory to video memory. We aren't displaying it on the screen; the screen output BPP is irrelevant. As we're copying without transforming the data in any way, the BLT output BPP needs to be the same as the input image. Therefore the bug is that LXCopyFromSys currently expects 16bpp input data, but is called with 8bpp planes in the LXCopyPlanar path. This patch fixes it by deriving the bpp from the input parameters. On Wed, Aug 04, 2010 at 07:44:10PM -0700, bugzilla-daemon@freedesktop.org wrote: > Fixed it. > > The set_bpp call is valid. We're BLTing an image from system memory to video > memory. We aren't displaying it on the screen; the screen output BPP is > irrelevant. As we're copying without transforming the data in any way, the BLT > output BPP needs to be the same as the input image. > > Therefore the bug is that LXCopyFromSys currently expects 16bpp input data, but > is called with 8bpp planes in the LXCopyPlanar path. This patch fixes it by > deriving the bpp from the input parameters. Um, stride in bytes / width in pixels isn't always bpp, given various alignment constraints and the need for padding. You'll just have to pass a bpp/format in explicitly. Unless I'm mistaken, this is fixed by commit e9effca821c1d604aeffeb3d3e7a49539485117d in Geode 2.11.9 that was just released? Created attachment 38497 [details] [review] fix Daniel Stone's concern additional patch to address Daniel's concern above Close this bug now that it has been fixed. Thanks, Frank |
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.