summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2017-02-04`argv` may be modified when `mrb_funcall()` is called; fix #3419Yukihiro "Matz" Matsumoto
Calling `mrb_funcall()` and `mrb_yield()` (and their related functions) are discouraged unless absolutely necessary, because it can cause this kind of issues very easily.
2017-02-04No need to make env unshared in the finalization; fix #3425Yukihiro "Matz" Matsumoto
2017-02-04Mark `mrb->backtrace.exc` as GC root; fix #3388Yukihiro "Matz" Matsumoto
2017-01-25Copy mrb_float values from pool when MRB_WORD_BOXING; ref #3396Yukihiro "Matz" Matsumoto
2017-01-24Outer class may be same as the class; fix #3382Yukihiro "Matz" Matsumoto
2017-01-24Use size_t to avoid integer overflow in mrb_ary_splice(); fix #3413Yukihiro "Matz" Matsumoto
2017-01-23Change return type of mrb_range_beg_len() from `int` to `mrb_int`.Yukihiro "Matz" Matsumoto
ref #3411
2017-01-23Fix a double free problem in codegen.c; fix #3378Yukihiro "Matz" Matsumoto
This issue was first reported by https://hackerone.com/geeknik The fix was proposed by @titanous
2017-01-23The ensure clause should keep its ci after its execution; fix #3406Yukihiro "Matz" Matsumoto
This issue was reported by https://hackerone.com/ston3
2017-01-23Backtrace list must be an array of strings; fix #3408Yukihiro "Matz" Matsumoto
2017-01-23Skip non string values in backtraces; ref #3408Yukihiro "Matz" Matsumoto
2017-01-23Refactoring: Use array_copy instead of for loopksss
2017-01-23Add MRB_API to mrb_range_beg_len(); ref #3411Yukihiro "Matz" Matsumoto
2017-01-23Changed the behavior of mrb_range_beg_len(); close #3411Yukihiro "Matz" Matsumoto
The new API is: int mrb_range_beg_len(mrb, range, &beg, &len, len, trunc) The new argument `trunc` is a boolean value that specifies whether the function truncates the range. The new return value is an integer instead of a boolean, that is: 0: not a range 1: range with proper edges 2: out of range To get the old behavior, you have to rewrite: mrb_range_beg_len(mrb, range, &beg, &len, len) to: mrn_range_beg_len(mrb, range, &beg, &len, len, TRUE) == 1 [Breaking Change]
2017-01-23Should not make empty strings shared; fix #3407Yukihiro "Matz" Matsumoto
2017-01-23Use mrb_write_barrier() instead of mrb_field_write_barrier_value()Yukihiro "Matz" Matsumoto
ref #3409
2017-01-23Remove unnecessary inline declaration; ref #3409Yukihiro "Matz" Matsumoto
2017-01-23Merge pull request #3409 from ksss/mrb_ary_spliceYukihiro "Matz" Matsumoto
Rewrite mrb_ary_splice
2017-01-22Should raise RuntimeError when object frozenksss
2017-01-22Rewrite mrb_ary_spliceksss
Referenced to CRuby's array.c(rb_ary_splice) fix #3405
2017-01-21Stack position may be bigger than stack bottom; fix #3401Yukihiro "Matz" Matsumoto
This issue was reported by https://hackerone.com/titanous
2017-01-18Initialize callinfo->acc; ref #3243Yukihiro "Matz" Matsumoto
2017-01-18Merge pull request #3362 from ksss/procYukihiro "Matz" Matsumoto
Proc shouldn't have `initialize` method
2017-01-12Add proper given argument number in the wrong-number-argument error.Yukihiro "Matz" Matsumoto
2017-01-12Add proper stack size calculation; fix #3398Yukihiro "Matz" Matsumoto
This issue was reported by https://hackerone.com/ssarong
2017-01-12Kernel#initialize should not break existing mt; fix #3397Yukihiro "Matz" Matsumoto
This issue was reported by https://hackerone.com/icanthack The solution is suggested by @clayton-shopify.
2017-01-12Merge pull request #3393 from clayton-shopify/fix-exc-initializeYukihiro "Matz" Matsumoto
Fix broken MRB_INT64
2017-01-11Fix 36fc1f14 not checking in the right locationBouke van der Bijl
2017-01-11Use mrb_int for argc.Clayton Smith
2017-01-11Use temporary variable to avoid potential crash; fix #3387Yukihiro "Matz" Matsumoto
This issue was original reported by https://hackerone.com/icanthack https://hackerone.com/titanous suggested the solution. `regs` may be reallocated in the function call.
2017-01-11String#replace should check replacing string; fix #3374Yukihiro "Matz" Matsumoto
This issue was reported by https://hackerone.com/tunz
2017-01-11Check if ci->target_class is NULL before dereferencingYukihiro "Matz" Matsumoto
close #3389 This issue was reported by https://hackerone.com/ston3
2017-01-11Raises Exception if raising exception class is redefinedYukihiro "Matz" Matsumoto
close #3384 This issue was reported by https://hackerone.com/brakhane
2017-01-11Exception#initialize to take arbitrary number of args; ref #3384Yukihiro "Matz" Matsumoto
2017-01-07Add ary_modify() checks; close #3379Yukihiro "Matz" Matsumoto
This issue was reported by https://hackerone.com/an0n-j
2017-01-06Merge pull request #3377 from ksss/respond_toYukihiro "Matz" Matsumoto
Check intern object returned by mrb_check_string_type
2017-01-06Check intern object returned by mrb_check_string_typeksss
2017-01-06Improve capacity enhancing conditionsYukihiro "Matz" Matsumoto
2017-01-06Add pointer cast to pacify warnings.Yukihiro "Matz" Matsumoto
2017-01-06Move mrb_assert() position.Yukihiro "Matz" Matsumoto
2017-01-06Should not deallocate shared string referring static; fix #3373Yukihiro "Matz" Matsumoto
2017-01-05Add new method Kernel#frozen?; ref #3370Yukihiro "Matz" Matsumoto
2017-01-05Add mrb_hash_modify() to Hash#{delete,clear}; ref #3370Yukihiro "Matz" Matsumoto
This issue was reported by https://hackerone.com/an0n-j
2017-01-02use size_t instead of intYukihiro "Matz" Matsumoto
2017-01-02Fix memory error on str_buf_catksss
Modify from nofree to embed string
2017-01-02Small refactoring: should use RSTR_CAPAksss
2017-01-01Initialize potentially uninitialized variable zYukihiro "Matz" Matsumoto
2016-12-31str_buf_cat(): better size check added; ref #3342Yukihiro "Matz" Matsumoto
2016-12-31str_buf_cat(): should allocate at least RSTRING_EMBED_LEN_MAX+1.Yukihiro "Matz" Matsumoto
2016-12-31ary_expand_capa(): refine conditions to avoid infinite loop; ref #3353Yukihiro "Matz" Matsumoto