Ada 4.1.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
limits.h
Go to the documentation of this file.
1#ifndef ADA_IDNA_LIMITS_H
2#define ADA_IDNA_LIMITS_H
3
4#include <cstddef>
5
6namespace ada::idna {
7
8// Maximum accepted UTF-8 domain length for non-ASCII to_ascii input and for
9// to_unicode input.
10// Bounds heap growth under untrusted input (DoS resistance). DNS wire limits
11// are smaller; this allows long Unicode labels used in URL tests/fixtures.
12inline constexpr size_t max_domain_input_bytes = 16384;
13
14} // namespace ada::idna
15
16#endif // ADA_IDNA_LIMITS_H
constexpr size_t max_domain_input_bytes
Definition limits.h:12