mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +00:00 
			
		
		
		
	Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as _Py_char2wchar()
This commit is contained in:
		
							parent
							
								
									6ce0dbf460
								
							
						
					
					
						commit
						65bf9cf26f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -201,7 +201,7 @@ decode_ascii_surrogateescape(const char *arg, size_t *size) | ||||||
|     unsigned char *in; |     unsigned char *in; | ||||||
|     wchar_t *out; |     wchar_t *out; | ||||||
| 
 | 
 | ||||||
|     res = PyMem_Malloc((strlen(arg)+1)*sizeof(wchar_t)); |     res = PyMem_RawMalloc((strlen(arg)+1)*sizeof(wchar_t)); | ||||||
|     if (!res) |     if (!res) | ||||||
|         return NULL; |         return NULL; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner