message: Validate memory page limits
diff: #include "parser.hpp"
  #include "leb128.hpp"
  +#include "limits.hpp"
  #include "types.hpp"
  #include "utf8.hpp"
  #include <cassert>
  @@ -213,6 +214,9 @@ inline parser_result<Memory> parse(const uint8_t* pos, const uint8_t* end)
  {
  Limits limits;
  std::tie(limits, pos) = parse_limits(pos, end);
  + if ((limits.min > MemoryPagesValidationLimit) ||
  + (limits.max.has_value() && *limits.max > MemoryPagesValidationLimit))
  + throw validation_error{"maximum memory page limit exceeded"};
  return {{limits}, pos};
  }
  