Changeset 1922:f8ecafac6034 in roaraudio


Ignore:
Timestamp:
05/29/09 15:14:09 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

test for unrealstic values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/light.c

    r1844 r1922  
    2828 
    2929 g_light_state.channels = 0; 
     30 
     31 if ( channels == 0 || channels > (512*512) ) /* unrealstic values */ 
     32  return -1; 
    3033 
    3134 if ( (g_light_state.state = malloc(channels)) == NULL ) { 
Note: See TracChangeset for help on using the changeset viewer.