[Bug 3683] New: R_FIndShader(): negative lightmap indexes cause stray pointers

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Fri Jun 13 06:30:19 EDT 2008


http://bugzilla.icculus.org/show_bug.cgi?id=3683

           Summary: R_FIndShader(): negative lightmap indexes cause stray
                    pointers
           Product: Quake 3
           Version: SVN HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: Misc
        AssignedTo: zakk at icculus.org
        ReportedBy: bnoordhuis at gmail.com
         QAContact: quake3-bugzilla at icculus.org


And you end up with a surreal image on your screen or, more likely, a segfault.

Negative indexes are allowed (-1 to -4 are reserved for built-in lightmaps) but
R_FindShader() fails to check for indexes < -4. When later on said index is
used to index an array, Unpredictable Behaviour emerges. Though, perhaps, not
really unpredictable.


-- 
Configure bugmail: http://bugzilla.icculus.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the quake3-bugzilla mailing list