lib/gssapi/krb5: make _gssapi_verify_pad() more robust
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
		 Stefan Metzmacher
					Stefan Metzmacher
				
			
				
					committed by
					
						 Andrew Bartlett
						Andrew Bartlett
					
				
			
			
				
	
			
			
			 Andrew Bartlett
						Andrew Bartlett
					
				
			
						parent
						
							078e6f5dd2
						
					
				
				
					commit
					63ed962041
				
			| @@ -190,6 +190,9 @@ _gssapi_verify_pad(gss_buffer_t wrapped_token, | ||||
|     size_t padlength; | ||||
|     int i; | ||||
|  | ||||
|     if (wrapped_token->length < 1) | ||||
| 	return GSS_S_BAD_MECH; | ||||
|  | ||||
|     pad = (u_char *)wrapped_token->value + wrapped_token->length - 1; | ||||
|     padlength = *pad; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user