char *cmd_name;
char *cmd_params;
- uoff_t poff;
+ size_t poff;
};
struct smtp_command_parser {
static int smtp_command_parse_parameters(struct smtp_command_parser *parser)
{
const unsigned char *p, *mp;
- uoff_t max_size = (parser->auth_response ?
+ size_t max_size = (parser->auth_response ?
parser->limits.max_auth_size :
parser->limits.max_parameters_size);
int nch = 1;
break;
p += nch;
}
- if (max_size > 0 && (uoff_t)(p - parser->cur) > max_size) {
+ if (max_size > 0 && (size_t)(p - parser->cur) > max_size) {
smtp_command_parser_error(
parser, SMTP_COMMAND_PARSE_ERROR_LINE_TOO_LONG,
"%s line is too long",
struct smtp_command_limits {
/* Maximum size of command parameters, starting after first space */
- uoff_t max_parameters_size;
+ size_t max_parameters_size;
/* Maximum size of authentication response */
- uoff_t max_auth_size;
+ size_t max_auth_size;
/* Absolute maximum size of command data, beyond which the parser yields
a fatal error; i.e. closing the connection in the server. This should
be higher than a normal message size limit, which would return a