message: Add MemoryPagesValidationLimit to limits
diff: namespace fizzy
  {
  +// The page size as defined by the WebAssembly 1.0 specification.
  constexpr unsigned PageSize = 65536;
  +
  +// The maximum memory page limit as defined by the specification.
  +// It is only possible to address 4 GB (32-bit) of memory.
  +constexpr unsigned MemoryPagesValidationLimit = (4 * 1024 * 1024 * 1024ULL) / PageSize;
  +static_assert(MemoryPagesValidationLimit == 65536);
  +
  // Set hard limit of 256MB of memory.
  constexpr unsigned MemoryPagesLimit = (256 * 1024 * 1024ULL) / PageSize;
  +
  // Call depth limit is set to default limit in wabt.
  // https://github.com/WebAssembly/wabt/blob/ae2140ddc6969ef53599fe2fab81818de65db875/src/interp/interp.h#L1007
  // TODO: review this
  