mirror of
				https://github.com/python-pillow/Pillow.git
				synced 2025-11-04 01:47:47 +03:00 
			
		
		
		
	Fix malloc in _imagingft.c:font_setvaraxes
This commit is contained in:
		
							parent
							
								
									8ed46cd568
								
							
						
					
					
						commit
						6788e8f957
					
				| 
						 | 
				
			
			@ -1179,7 +1179,7 @@ font_setvaraxes(FontObject *self, PyObject *args) {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    num_coords = PyObject_Length(axes);
 | 
			
		||||
    coords = malloc(2 * sizeof(coords));
 | 
			
		||||
    coords = (FT_Fixed*)malloc(num_coords * sizeof(FT_Fixed));
 | 
			
		||||
    if (coords == NULL) {
 | 
			
		||||
        return PyErr_NoMemory();
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user