summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2017-07-05Check stack size before accessing env stack; fix #3727Yukihiro "Matz" Matsumoto
2017-07-05Avoid undefined behavior of left shifting negative integer; #3728Yukihiro "Matz" Matsumoto
2017-07-05Avoid undefined behavior of signed integer overflow; fix #3728Yukihiro "Matz" Matsumoto
2017-07-04Merge pull request #3726 from mruby/stableYukihiro "Matz" Matsumoto
mruby-1.3.0
2017-07-04Set the mruby-1.3.0 release date to `2017-7-4`.1.3.0Hiroshi Mimaki
2017-07-04Refactor `sprintf()` code.Yukihiro "Matz" Matsumoto
2017-07-04Initialize `flags` for each loop.Yukihiro "Matz" Matsumoto
2017-07-03Fixed an unit test to work on Cygwin.Hiroshi Mimaki
2017-07-01`break` should not cross fiber-context boundary; fix #3724Yukihiro "Matz" Matsumoto
2017-07-01`super` may be called from a block; fix #3723Yukihiro "Matz" Matsumoto
2017-06-28Remove redundant use of `Object#to_s` in interpolation.Yukihiro "Matz" Matsumoto
2017-06-28Provide better way to check compile errors.Yukihiro "Matz" Matsumoto
Now you can just call `mrb_load_*` functions then check `context->parser_nerr > 0` if the return value is `undef`, instead of calling `mrb_parse_*` functions independently. ref #3248 #3331
2017-06-28Revert "Make `mrb_load_exec` a static function."Yukihiro "Matz" Matsumoto
This reverts commit 7944d9a6d4ccb94189f37d307d384ed1cfe33e17. Because it voids #3248 and #3331. But we should add better way to check whether compile errors occur without duplicated callings.
2017-06-28Avoid `mrb_funcall()` unless absolutely necessary; ref #3722Yukihiro "Matz" Matsumoto
As a result, `#chr` is not called for ch < 0x80, so we need to update the "invalid chr" test.
2017-06-27Remove unnecessary initialization of a local variable.Yukihiro "Matz" Matsumoto
2017-06-27No longer need to copy `argv` from `mrb_get_args`; ref #3722Yukihiro "Matz" Matsumoto
2017-06-27Copy argv from VM stack to avoid use-after-free; fix #3722Yukihiro "Matz" Matsumoto
2017-06-23Make `LocalJumpError` a subclass of `ScriptError`.Yukihiro "Matz" Matsumoto
It's incompatible with CRuby, but it is required for mruby because it cannot detect `break` outside of loops in the parsing time, but in the code generation time where it cannot raise `SyntaxError`.
2017-06-23Should raise an exception if `break` called in ensure; fix #3721Yukihiro "Matz" Matsumoto
2017-06-23Make `mrb_load_exec` a static function.Yukihiro "Matz" Matsumoto
2017-06-23Silence `mrbmemcpy` and `mrbmemset` warnings.Yukihiro "Matz" Matsumoto
2017-06-22No need to mark stacks of terminated fibers; fix #3720Yukihiro "Matz" Matsumoto
2017-06-22Add write barrier to protect singleton class from GC; fix #3717Yukihiro "Matz" Matsumoto
2017-06-22Silence rubocop warnings.Yukihiro "Matz" Matsumoto
2017-06-21Add write barrier to protect proc reference from fiber; fix #3719Yukihiro "Matz" Matsumoto
2017-06-21Use `alias enum_for to_enum` instead of `alias :enum_for :to_enum`.Yukihiro "Matz" Matsumoto
2017-06-21use `unless` instead of `if not`.Yukihiro "Matz" Matsumoto
2017-06-21Should call `ecall()` before callinfo adjustment; fix #3715Yukihiro "Matz" Matsumoto
2017-06-20Array size can be cause integer overflow; fix #3710Yukihiro "Matz" Matsumoto
2017-06-20Merge pull request #3718 from miura1729/originalYukihiro "Matz" Matsumoto
#3711 fix
2017-06-20#3711 fixMiura Hideki
2017-06-20Avoid using `snprintf(3)` in case `MRB_DISABLE_STDIO`; fix #3714Yukihiro "Matz" Matsumoto
2017-06-20Merge pull request #3713 from Asmod4n/patch-2Yukihiro "Matz" Matsumoto
Save gc_arena after buffer got allocated
2017-06-19Save gc_arena after buffer got allocatedAsmod4n
Latest fix was freeing the buffer while it was still in use. Fixes #3712
2017-06-19Fixed disclosure of local variables by `eval`; ref #3710Yukihiro "Matz" Matsumoto
This patch fixes the latter part of #3710. We need to change `struct REnv` to fix the former part of the issue.
2017-06-19Increment the version number to `1.3.0`.Yukihiro "Matz" Matsumoto
2017-06-19Increment `RITE_BINARY_FORMAT_VER`.Yukihiro "Matz" Matsumoto
The behavior of `OP_RAISE` has been changed.
2017-06-19Use `mrb_int` instead of `int` as argument to `mrb_hash_new_capa`.Yukihiro "Matz" Matsumoto
2017-06-17Use `mrb_int` instead of `int`.Yukihiro "Matz" Matsumoto
2017-06-17Merge pull request #3706 from MasahikoSawada/fix_typoYukihiro "Matz" Matsumoto
Fix a typo in gc.c.
2017-06-17Mark the GC arena in `final_marking_phase`.Yukihiro "Matz" Matsumoto
Arena can be modified during the marking phase.
2017-06-17Mark the root context in `final_marking_phase`.Yukihiro "Matz" Matsumoto
Because the root context cannot be marked from fibers.
2017-06-17Mark global variables in `final_marking_phase`; fix #3704Yukihiro "Matz" Matsumoto
2017-06-17Store operands to local variables.Yukihiro "Matz" Matsumoto
Mostly for debugging purpose.
2017-06-17Correct comments in gc.cYukihiro "Matz" Matsumoto
2017-06-17Use `mrb_int` instead of `size_t` for array capacity and length.Yukihiro "Matz" Matsumoto
2017-06-17Fix a typo in gc.c.Masahiko Sawada
2017-06-16Use `MRB_PRId` instead of `d` for mrb_int decimal specifier; ref #3701Yukihiro "Matz" Matsumoto
2017-06-16Merge branch 'ksss-string-upto'Yukihiro "Matz" Matsumoto
2017-06-16Use `mrb_str_new()` instead of `malloc()`; ref #3701Yukihiro "Matz" Matsumoto
Otherwise the function may terminate and cause memory leaks.