mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Fixed integer overflow in array.buffer_info().
This commit is contained in:
		
						commit
						5ffdcad7b9
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1268,7 +1268,7 @@ array_array_buffer_info_impl(arrayobject *self) | ||||||
|     } |     } | ||||||
|     PyTuple_SET_ITEM(retval, 0, v); |     PyTuple_SET_ITEM(retval, 0, v); | ||||||
| 
 | 
 | ||||||
|     v = PyLong_FromLong((long)(Py_SIZE(self))); |     v = PyLong_FromSsize_t(Py_SIZE(self)); | ||||||
|     if (v == NULL) { |     if (v == NULL) { | ||||||
|         Py_DECREF(retval); |         Py_DECREF(retval); | ||||||
|         return NULL; |         return NULL; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Serhiy Storchaka
						Serhiy Storchaka