Merge pull request #89 from alliedmodders/bug-6176
Fix crash with malformed arguments (bug 6176).
This commit is contained in:
		
						commit
						9c6b82f3a5
					
				| @ -6654,6 +6654,10 @@ static void statement(int *lastindent,int allow_decl) | ||||
|     } | ||||
| 
 | ||||
|     if (is_decl) { | ||||
|       if (!allow_decl) { | ||||
|         error(3); | ||||
|         return; | ||||
|       } | ||||
|       lexpush(); | ||||
|       autozero = TRUE; | ||||
|       lastst = tNEW; | ||||
|  | ||||
							
								
								
									
										4
									
								
								sourcepawn/compiler/tests/fail-missing-arg-comma.sp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								sourcepawn/compiler/tests/fail-missing-arg-comma.sp
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | ||||
| stock void Function( float array1[ 3 ] float array2[ 3 ] ) | ||||
| { | ||||
| 
 | ||||
| } | ||||
							
								
								
									
										1
									
								
								sourcepawn/compiler/tests/fail-missing-arg-comma.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								sourcepawn/compiler/tests/fail-missing-arg-comma.txt
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1 @@ | ||||
| (1) : error 001: expected token: ")", but found "-identifier-" | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user