Remove recursion limit from RegExp engine.
Related issue: #388 JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
@@ -61,11 +61,6 @@ typedef enum
|
||||
RE_OP_INV_CHAR_CLASS
|
||||
} re_opcode_t;
|
||||
|
||||
/**
|
||||
* Recursion limit of RegExp compiler
|
||||
*/
|
||||
#define RE_COMPILE_RECURSION_LIMIT 100
|
||||
|
||||
/**
|
||||
* Check if a RegExp opcode is a capture group or not
|
||||
*/
|
||||
@@ -92,7 +87,6 @@ typedef struct
|
||||
typedef struct
|
||||
{
|
||||
uint8_t flags; /**< RegExp flags */
|
||||
uint32_t recursion_depth; /**< recursion depth */
|
||||
uint32_t num_of_captures; /**< number of capture groups */
|
||||
uint32_t num_of_non_captures; /**< number of non-capture groups */
|
||||
uint32_t highest_backref; /**< highest backreference */
|
||||
|
||||
Reference in New Issue
Block a user