diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-18 12:01:07 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-10-18 12:01:07 +0900 |
| commit | 0d08f89159fd534f9d0d4892e413b0f4f35236f0 (patch) | |
| tree | e0bf8e40b3ac4d5091619ce471187f9b3486ea20 /mrbgems | |
| parent | de2b4bd0dce06da05bdac22eee57e80f847377a8 (diff) | |
| download | mruby-0d08f89159fd534f9d0d4892e413b0f4f35236f0.tar.gz mruby-0d08f89159fd534f9d0d4892e413b0f4f35236f0.zip | |
codegen.c: Reduce `MRB_CODEGEN_LEVEL_MAX` from 1024 to 256.
1024 was too big. Some deep recursion could not be detected before
actual stack overflow.
Diffstat (limited to 'mrbgems')
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index ff9e10071..9038c9845 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -20,7 +20,7 @@ #include <string.h> #ifndef MRB_CODEGEN_LEVEL_MAX -#define MRB_CODEGEN_LEVEL_MAX 1024 +#define MRB_CODEGEN_LEVEL_MAX 256 #endif #define MAXARG_S (1<<16) |
