mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fixed irep index overflows, when defining new closure.
Issue #1137. In the present implementation, when calling mrb_load_string continuously, irep is not released. Therefore, a 16-bit index was overflowing.
This commit is contained in:
@@ -12,7 +12,7 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct mrb_irep {
|
||||
uint16_t idx;
|
||||
uint32_t idx;
|
||||
uint16_t nlocals;
|
||||
uint16_t nregs;
|
||||
uint8_t flags;
|
||||
|
||||
Reference in New Issue
Block a user