[Bug 1858] New: array subscript out of range

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 15 03:40:53 PST 2004


Please do not reply to this email: if you want to comment on the bug, go to          
the URL shown below and enter yourcomments there.   
 
https://freedesktop.org/bugzilla/show_bug.cgi?id=1858        
   
           Summary: array subscript out of range
           Product: xorg
           Version: 6.8.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Lib/other
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: dcb314 at hotmail.com


Hello there,

I just tried to compile X11R6.8.1 with the most excellent Intel C
8.1 compiler, on a Linux Fedora Core 3 box. The compiler said

gamma_state.c(1593): warning #175: subscript out of range

The source code is in file

./extras/Mesa/src/mesa/drivers/dri/gamma/gamma_state.c

The source code is

    WRITE(gmesa->buf, TxBaseAddr12, curTex->TextureBaseAddr[12]);

but

[dcb at localhost xc]$ find . -name \*.h -print | xargs grep TextureBaseAddr
./extras/Mesa/src/mesa/drivers/dri/gamma/gamma_context.h:   uint32_t
TextureBaseAddr[GAMMA_TEX_MAXLEVELS];

and

[dcb at localhost xc]$ find . -name \*.h -print | xargs grep GAMMA_TEX_MAXLEVELS
./extras/Mesa/src/mesa/drivers/dri/gamma/gamma_context.h:#define
GAMMA_TEX_MAXLEVELS 12

so curTex->TextureBaseAddr[12] doesn't exist. Suggest code re-work.        
   
   
--         
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email       
   
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list