mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Issue #13848: open() and the FileIO constructor now check for NUL characters in the file name.
Patch by Hynek Schlawack.
This commit is contained in:
		
							parent
							
								
									c875d2032b
								
							
						
					
					
						commit
						1334884ff2
					
				
					 7 changed files with 44 additions and 22 deletions
				
			
		|  | @ -1501,6 +1501,12 @@ PyAPI_FUNC(int) PyUnicode_Contains( | |||
|     PyObject *element           /* Element string */ | ||||
|     ); | ||||
| 
 | ||||
| /* Checks whether the string contains any NUL characters. */ | ||||
| 
 | ||||
| #ifndef Py_LIMITED_API | ||||
| PyAPI_FUNC(int) _PyUnicode_HasNULChars(PyObject *); | ||||
| #endif | ||||
| 
 | ||||
| /* Checks whether argument is a valid identifier. */ | ||||
| 
 | ||||
| PyAPI_FUNC(int) PyUnicode_IsIdentifier(PyObject *s); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Antoine Pitrou
						Antoine Pitrou