Bug 2436 - Buffer overrun if # lightmaps > MAX_LIGHTMAPS
Status: RESOLVED INVALID
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: 1.33 SVN
Hardware: PC All
: P2 minor
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2005-10-19 18:43 EDT by Ben Noordhuis
Modified: 2007-05-21 11:23:56 EDT
0 users

See Also:



Description Ben Noordhuis 2005-10-19 18:43:20 EDT
A buffer overrun occurs if a map has more than MAX_LIGHTMAPS (256) lightmaps.
Apply diff to renderer/tr_bsp.c.

157a158,160
>       } else if ( tr.numLightmaps >= MAX_LIGHTMAPS ) {        // 20051020
misantropia
>         ri.Printf( PRINT_WARNING, "WARNING: number of lightmaps >
MAX_LIGHTMAPS\n" );
>         tr.numLightmaps = MAX_LIGHTMAPS;
Comment 1 Zachary J. Slater 2005-10-19 22:33:31 EDT
Do not file several bugs that are almost exactly the same.
Comment 2 Ryan C. Gordon 2007-05-21 11:23:56 EDT
Setting a QA contact on all ioquake3 bugs, even resolved ones. Sorry if you get a flood of email from this, it should only happen once. Apologies for the incovenience.

--ryan.