File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 99    (nielsdos)
1010  . Fixed bug GH-17214 (Relax final+private warning for trait methods with
1111    inherited final). (ilutov)
12+   . Fixed NULL arithmetic during system program execution on Windows. (cmb,
13+     nielsdos)
1214
1315- Enchant:
1416  . Fix crashes in enchant when passing null bytes. (nielsdos)
Original file line number Diff line number Diff line change @@ -374,14 +374,16 @@ static process_pair *process_get(FILE *stream)
374374	process_pair  * ptr ;
375375	process_pair  * newptr ;
376376
377- 	for  (ptr  =  TWG (process ); ptr  <  (TWG (process ) +  TWG (process_size )); ptr ++ ) {
378- 		if  (ptr -> stream  ==  stream ) {
379- 			break ;
377+ 	if  (TWG (process ) !=  NULL ) {
378+ 		for  (ptr  =  TWG (process ); ptr  <  (TWG (process ) +  TWG (process_size )); ptr ++ ) {
379+ 			if  (ptr -> stream  ==  stream ) {
380+ 				break ;
381+ 			}
380382		}
381- 	}
382383
383- 	if  (ptr  <  (TWG (process ) +  TWG (process_size ))) {
384- 		return  ptr ;
384+ 		if  (ptr  <  (TWG (process ) +  TWG (process_size ))) {
385+ 			return  ptr ;
386+ 		}
385387	}
386388
387389	newptr  =  (process_pair * )realloc ((void * )TWG (process ), (TWG (process_size )+ 1 )* sizeof (process_pair ));
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments