RPNXCortado
C++23 JVM class-file, bytecode, validation, and JAR toolkit
Loading...
Searching...
No Matches
rpnx::cortado::signature_parse_options Struct Reference

Resource limits applied while parsing an untrusted generic signature. More...

#include <signatures.hpp>

Public Attributes

std::size_t maximum_nesting_depth {256}
 Maximum recursive grammar depth accepted from untrusted input.
 
std::size_t maximum_nodes {65'536}
 Maximum syntax-tree nodes constructed by one parse.
 

Detailed Description

Resource limits applied while parsing an untrusted generic signature.

Definition at line 23 of file signatures.hpp.

Member Data Documentation

◆ maximum_nesting_depth

std::size_t rpnx::cortado::signature_parse_options::maximum_nesting_depth {256}

Maximum recursive grammar depth accepted from untrusted input.

Definition at line 25 of file signatures.hpp.

◆ maximum_nodes

std::size_t rpnx::cortado::signature_parse_options::maximum_nodes {65'536}

Maximum syntax-tree nodes constructed by one parse.

Definition at line 26 of file signatures.hpp.


The documentation for this struct was generated from the following file: