The type is uoff_t, not size_t, so the value should be UOFF_T_MAX.
/* FIXME: enforce max payload size (relevant to http-client
only) */
parser->payload =
- i_stream_create_limit(parser->input, SIZE_MAX);
+ i_stream_create_limit(parser->input, UOFF_T_MAX);
} else {
/* RFC 7230, Section 3.3.3: Message Body Length
*/
// FIXME: enforce max payload size (relevant to http-client only)
// FIXME: handle request case correctly.
- parser->payload = i_stream_create_limit(parser->input, SIZE_MAX);
+ parser->payload = i_stream_create_limit(parser->input, UOFF_T_MAX);
return 0;
}