summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-11-19fix non-ASCII comment.Yukihiro "Matz" Matsumoto
2018-11-19Check method existence for Enumerators; fix #3920Yukihiro "Matz" Matsumoto
The issue #3920 was fixed but the fundamental flaw of lack of stack depth check along with fibers still remains, even though it's not easy to cause the issue. Use `MRB_GC_FIXED_ARENA` to avoid the issue for workaround. After this patch, `obj.to_enum` raises `ArgumentError` if the object does not respond to the enumerating method. This is incompatible to CRuby but I think this behavior is better and CRuby should be updated to behave like this.
2018-11-19The current context may be changed in `mrb_vm_exec`; ref #3668 #4104Yukihiro "Matz" Matsumoto
2018-11-19Protect Fiber from GC in `ecall()`; fix #4104Yukihiro "Matz" Matsumoto
2018-11-19Improve Hash table using variable sized segments.Yukihiro "Matz" Matsumoto
2018-11-16The key or value object could be reclaimed by GC; fix #4164Yukihiro "Matz" Matsumoto
The GC may occur between `sg_shift` and `mrb_assoc_new`, in which case `key` and `value` could be freed even tough they are still alive. The issue is found and fixed by https://hackerone.com/hexodus
2018-11-15The saved `pc` from `ERR_PC_SET` was wrong; fix #4138Yukihiro "Matz" Matsumoto
The saving `pc` position should be beginning of the instruction. But after `mruby 2.0` byte code modification, the `pc` variable points the beginning of the next instruction. We save the previous position in a local variable `pc0`.
2018-11-15Fixed a bug in continuous read of target files; ref #4138Yukihiro "Matz" Matsumoto
Line number information in a compiled file was wrong.
2018-11-15Shrink file name table size to `uint16_t`; ref #4138Yukihiro "Matz" Matsumoto
2018-11-15Rename local variables in `mrb_debug_info_append_file`Yukihiro "Matz" Matsumoto
2018-11-15Simplify argument parsing; ref #4161Yukihiro "Matz" Matsumoto
2018-11-15Silence `-fsanitize=undefined` warning in `src/enum.c`; fix #4161Yukihiro "Matz" Matsumoto
2018-11-15Remove `filename`&`lines` from `mrb_irep` struct.Yukihiro "Matz" Matsumoto
This patch slightly reduce memory consumption (2% for my test).
2018-11-15Small renaming refactor in `dump.c`Yukihiro "Matz" Matsumoto
2018-11-15`String#{squeeze,delete,count}` to use bitmap for matching; ref #4163Yukihiro "Matz" Matsumoto
2018-11-15Pattern length may overflow `uint16_t`; fixed #4163Yukihiro "Matz" Matsumoto
The issue is reported by `https://hackerone.com/dgaletic`.
2018-11-07Merge pull request #4160 from mimaki/wrong-negative-float-in-mrbYukihiro "Matz" Matsumoto
Wrong pool data length for negative floating value in a mrb file.
2018-11-07Wrong pool data length for negative floating value in a mrb file.Hiroshi Mimaki
2018-11-05Fixed wrong `ArgumentError` with keyword arguments; fix #4159Yukihiro "Matz" Matsumoto
2018-11-05Fixed a bug in argument number check with kwargs; fix #4159Yukihiro "Matz" Matsumoto
2018-11-02Remove reserved symbols for now.Yukihiro "Matz" Matsumoto
It should be done by planned embedded symbols.
2018-11-02Merge pull request #4151 from take-cheeze/remove_op_symidxYukihiro "Matz" Matsumoto
Reduce instruction size
2018-11-02Merge branch 'take-cheeze-fix_dump_load'Yukihiro "Matz" Matsumoto
Since our new VM instruction is byte based, there's no need to endian conversion of instruction sequences.
2018-11-02Suppress warningtake-cheeze
2018-11-02Fix dump and load with endianesstake-cheeze
2018-11-02Add `NULL` checks for `mrb->ci` and `proc->upeer`; #4024Yukihiro "Matz" Matsumoto
2018-11-02Add tests for empty patterns for `tr` and `count`; #4156 #4157Yukihiro "Matz" Matsumoto
2018-11-02Empty pattern string for `String#tr` should remove characters; fix #4157Yukihiro "Matz" Matsumoto
2018-11-02Empty pattern string can generate `TR_UNINITIALIZED` pattern; fix #4156Yukihiro "Matz" Matsumoto
2018-11-01Silence Appveyor's VC compilation warnings.Yukihiro "Matz" Matsumoto
2018-11-01The `env` object referenced from fibers may be freed; fix #4154Yukihiro "Matz" Matsumoto
By dffa203 that reclaim `env` objects from heaps, there's more chance for `env` objects referenced from fibers may be freed from heap pages.
2018-11-01Merge pull request #4155 from mimaki/fix-4153Yukihiro "Matz" Matsumoto
Fixed a bug in INIT_DISPATCH for non direct threading; fix #4153
2018-11-01Fixed a bug in INIT_DISPATCH for non direct threading; fix #4153Hiroshi Mimaki
2018-10-30Merge pull request #4152 from take-cheeze/build_debug_flagYukihiro "Matz" Matsumoto
Add debug flag to `MRuby::Build`
2018-10-30VS 2017 C does not understand inline struct initialization; ref #4153Yukihiro "Matz" Matsumoto
2018-10-29Add debug flag to `MRuby::Build`take-cheeze
2018-10-29Reduce unnecessary symbol table entrytake-cheeze
2018-10-29Fix codedumpertake-cheeze
2018-10-29Fix documenttake-cheeze
2018-10-29Fix operatortake-cheeze
2018-10-29Fix SEGVtake-cheeze
2018-10-29Define null symboltake-cheeze
2018-10-29Reduce instruction sizetake-cheeze
2018-10-29Merge pull request #4149 from take-cheeze/static_tr_patternYukihiro "Matz" Matsumoto
Keep `tr_pattern` static if possible
2018-10-29Merge pull request #4148 from take-cheeze/rename_libmruby_stuffYukihiro "Matz" Matsumoto
Rename `MRuby::Build#libmruby` stuff to avoid confusion
2018-10-29Merge pull request #4147 from take-cheeze/add_missing_depYukihiro "Matz" Matsumoto
Add missing dependency of source code generator
2018-10-29Merge pull request #4146 from take-cheeze/sup_sleep_warnYukihiro "Matz" Matsumoto
Suppress sleep test script warning
2018-10-29Merge pull request #4145 from take-cheeze/sort_test_rbfilesYukihiro "Matz" Matsumoto
Sort test script list too
2018-10-29Rename libmruby stuff to avoid confusiontake-cheeze
2018-10-29Add missing dependency of source code generatortake-cheeze