| Summary: | gamma_state.c:1593: warning: array subscript out of range | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | dcb314 |
| Component: | Drivers/DRI/Gamma | Assignee: | Default DRI bug account <dri-devel> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | high | ||
| Version: | 5.0.2 | ||
| Hardware: | x86 (IA32) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
This was fixed in Mesa CVS a while back. The fix will be in Mesa 6.4 and the next X.org release. |
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.
I just tried to compile Fedora development package xorg-x11-6.8.2-54 with a special non-standard version of the usual GNU C compiler. The compiler said gamma_state.c:1593: warning: array subscript out of range The source code is WRITE(gmesa->buf, TxBaseAddr12, curTex->TextureBaseAddr[12]); but ../BUILD/xorg-x11-6.8.2/xc/lib/GL/mesa/drivers/dri/gamma/gamma_context.h: uint32_t TextureBaseAddr[GAMMA_TEX_MAXLEVELS]; and ../BUILD/xorg-x11-6.8.2/xc/lib/GL/mesa/drivers/dri/gamma/gamma_context.h:#define GAMMA_TEX_MAXLEVELS 12 so TextureBaseAddr[12] doesn't exist. Suggest code rework.