summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-09-20Merge branch 'no-implicit-conversion' into mruby2-draftmruby2-draftYukihiro "Matz" Matsumoto
2018-09-20Small refactoring in `mruby-hash-ext`.Yukihiro "Matz" Matsumoto
2018-09-19Removed `to_hash` conversion method.Yukihiro "Matz" Matsumoto
2018-09-19fixup! Removed `to_ary` conversion method.Yukihiro "Matz" Matsumoto
2018-09-19fixup! Remove implicit conversion using `to_str` method.Yukihiro "Matz" Matsumoto
2018-09-19Removed `to_ary` conversion method.Yukihiro "Matz" Matsumoto
2018-09-19Removed `try_convert` method from Array and Hash.Yukihiro "Matz" Matsumoto
2018-09-19Removed `String#try_convert` method from `mruby-string-ext` gem.Yukihiro "Matz" Matsumoto
Because `try_convert` method rarely used in production. For mruby users, we have `__to_str` utility method to check string type.
2018-09-19Remove implicit conversion using `to_str` method.Yukihiro "Matz" Matsumoto
We have added internal convenience method `__to_str` which does string type check.
2018-09-19Remove implicit conversion using `to_int` method.Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`. This implicit conversion often causes vulnerability. There will be no more attacks like #4120. In addition, we have added internal convenience method `__to_int` which does type check and conversion (from floats).
2018-09-18Use `mrb_to_flo()` to check return value from `to_f`; fix #4115Yukihiro "Matz" Matsumoto
The ISO standard does not include implicit type conversion using `to_int`, `to_str` and sometimes `to_f`. For the compactness of the mruby implementation, maybe we should remove those implicit conversion from mruby.
2018-09-18Array size may be changed in `mrb_get_args()` reentry.Yukihiro "Matz" Matsumoto
fix #4116; fix #4117; fix #4118; fix #4119; fix #4120
2018-09-17Merge pull request #4122 from blacktm/iphone-exclude-pipe-execYukihiro "Matz" Matsumoto
Exclude pipe and exec on iOS/tvOS
2018-09-15Exclude pipe and exec on iOS/tvOSTom Black
Use of `execl()` is prohibited on these platforms
2018-09-16fixup! Add support for iOS platforms that does not support `fork`; fix #4113Yukihiro "Matz" Matsumoto
2018-09-16Merge pull request #4121 from clayton-shopify/fix-sprintf-overflowYukihiro "Matz" Matsumoto
Prevent signed integer overflow.
2018-09-16Add support for iOS platforms that does not support `fork`; fix #4113Yukihiro "Matz" Matsumoto
2018-09-14Prevent signed integer overflow.Clayton Smith
2018-09-08Merge pull request #4110 from dearblue/fix-typo1Yukihiro "Matz" Matsumoto
Fix typo
2018-09-07Clear terminated spacedearblue
2018-09-07Fix indentdearblue
2018-09-07Undesirable line splitdearblue
2018-09-07Fix typo for concatenatedearblue
2018-09-07Fix integer overflow issue; fix #4108Yukihiro "Matz" Matsumoto
I misunderstood the return value from `snprintf()`, which is NOT number of characters written in buffer, but the number of character the buffer has to have to write the complete output.
2018-09-07Add a new method `unpack1` to `mruby-pack` gem.Yukihiro "Matz" Matsumoto
2018-09-07Fix heap buffer overflow in `unpack_a`; fix #4103Yukihiro "Matz" Matsumoto
2018-09-06Make `Kernel#sleep` to accept float as a duration time.Yukihiro "Matz" Matsumoto
But when `MRB_WITHOUT_FLOAT` is set, there's no way to sleep for sub seconds. So mruby specific `usleep` is provided.
2018-09-06Remove `Sleep` module that does not exist in CRuby.Yukihiro "Matz" Matsumoto
2018-09-06Need to check if merging hash is empty; fix #4107Yukihiro "Matz" Matsumoto
2018-09-06Need to support multiple `**` splats in argument list; fix #4106Yukihiro "Matz" Matsumoto
2018-09-05Refactored `mruby-sleep` gem.Yukihiro "Matz" Matsumoto
* Method implementation functions made `static`. * Function declaration style has been changed. * Unnecessary header file `mrb_sleep.h` removed. * Used `mrb_get_args()` instead of self parsing. * Indentation kept untouched.
2018-09-05Add `mruby-sleep` gem to the core.Yukihiro "Matz" Matsumoto
2018-09-05Free `mrbc_context` on exit from `mruby`.Yukihiro "Matz" Matsumoto
2018-09-05Merge pull request #4055 from take-cheeze/verbose_bintestYukihiro "Matz" Matsumoto
Support verbose mode in bintest.
2018-09-05Add `argv` and `argc` check in `OP_ENTER`; fix #4102Yukihiro "Matz" Matsumoto
`argv` may be retrieved from an array whose `ptr` is `NULL` when it`s empty.
2018-09-04Revert "Remove top-level constant lookup; CRuby2.5"; fix #4070Yukihiro "Matz" Matsumoto
This reverts commit c96def7c96c50f3b8e22e47ce31a6c5a37939dfd. This change was from my misunderstanding.
2018-09-04Need more precise constant name check.Yukihiro "Matz" Matsumoto
This change was inspired by [ruby-bugs#7573]
2018-09-04Add type casts to silence MSVC warnings.Yukihiro "Matz" Matsumoto
2018-09-04Merge pull request #4101 from take-cheeze/fix_4085Yukihiro "Matz" Matsumoto
Avoid root fiber initialization for CRuby.
2018-09-04Avoid root fiber initialization for CRuby workaround.take-cheeze
closes #4085.
2018-09-04Fix indent.take-cheeze
2018-09-04Merge pull request #4098 from dearblue/reverse-gems-finalYukihiro "Matz" Matsumoto
Reversing gems final
2018-09-02Reverse gems finaldearblue
2018-09-01Avoid warning in MSVC compilation.Yukihiro "Matz" Matsumoto
2018-09-01Too much peephole optimization in `gen_call`; fix #4091Yukihiro "Matz" Matsumoto
It causes trouble for safe navigation operator.
2018-09-01Move `Kernel#send` to `mruby-metaprog` gem.Yukihiro "Matz" Matsumoto
But `BasicObject#__send__` is still available from the core.
2018-09-01Avoid `NoMethodError` exception from `mrb_func_basic_p`.Yukihiro "Matz" Matsumoto
2018-09-01Use `__send__` instead of `send`.Yukihiro "Matz" Matsumoto
2018-09-01Remove `MRB_API` from `mrb_f_send` which is not API.Yukihiro "Matz" Matsumoto
2018-09-01Fix ISO/JIS section numbers.Yukihiro "Matz" Matsumoto