mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	gh-117376: Fix off-by-ones in conversion functions (GH-124301)
Fix off-by-ones in conversion function
This commit is contained in:
		
							parent
							
								
									c1600c78e4
								
							
						
					
					
						commit
						198756b0f6
					
				
					 3 changed files with 6 additions and 6 deletions
				
			
		
							
								
								
									
										4
									
								
								Python/generated_cases.c.h
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										4
									
								
								Python/generated_cases.c.h
									
										
									
										generated
									
									
									
								
							|  | @ -2252,7 +2252,7 @@ | |||
|                 PyCFunctionFast cfunc = | ||||
|                 (PyCFunctionFast)(void(*)(void))meth->ml_meth; | ||||
|                 int nargs = total_args - 1; | ||||
|                 STACKREFS_TO_PYOBJECTS(args, nargs, args_o); | ||||
|                 STACKREFS_TO_PYOBJECTS(args, total_args, args_o); | ||||
|                 if (CONVERSION_FAILED(args_o)) { | ||||
|                     PyStackRef_CLOSE(callable); | ||||
|                     PyStackRef_CLOSE(self_or_null[0]); | ||||
|  | @ -2333,7 +2333,7 @@ | |||
|                 int nargs = total_args - 1; | ||||
|                 PyCFunctionFastWithKeywords cfunc = | ||||
|                 (PyCFunctionFastWithKeywords)(void(*)(void))meth->ml_meth; | ||||
|                 STACKREFS_TO_PYOBJECTS(args, nargs, args_o); | ||||
|                 STACKREFS_TO_PYOBJECTS(args, total_args, args_o); | ||||
|                 if (CONVERSION_FAILED(args_o)) { | ||||
|                     PyStackRef_CLOSE(callable); | ||||
|                     PyStackRef_CLOSE(self_or_null[0]); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ken Jin
						Ken Jin