| Summary: |
Calling _mesa_compressed_image_address with invalid parameter in texcompress_fxt1.c triggers a Mesa internal error |
| Product: |
Mesa
|
Reporter: |
haihao <haihao.xiang> |
| Component: |
Mesa core | Assignee: |
mesa-dev |
| Status: |
CLOSED
FIXED
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
high
|
|
|
| Version: |
git | |
|
| Hardware: |
x86 (IA32) | |
|
| OS: |
Linux (All) | |
|
| Whiteboard: |
|
|
i915 platform:
|
|
i915 features:
|
|
| Attachments: |
Patch to fix this bug
|
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.
In functions texstore_rgba_fxt1 and texstore_rgb_fxt1(texcompress_fxt1.c), calling _mesa_compressed_image_address with mesaFormat set to GL_COMPRESSED_RGB_FXT1_3DFX or GL_COMPRESSED_RGBA_FXT1_3DFX. From the context, it is a mistake. Here it should pass a Mesa internal format, or it will trigger a mesa error. 107 dst = _mesa_compressed_image_address(dstXoffset, dstYoffset, 0, 108 GL_COMPRESSED_RGB_FXT1_3DFX, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 109 texWidth, (GLubyte *) dstAddr);