Yukihiro "Matz" Matsumoto
|
fe0e45505b
|
Initialize callinfo->acc; ref #3243
|
2017-01-18 17:53:08 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c8536d977d
|
Merge pull request #3362 from ksss/proc
Proc shouldn't have `initialize` method
|
2017-01-18 00:09:26 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
8d61f2120c
|
Add proper given argument number in the wrong-number-argument error.
|
2017-01-12 23:14:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a3571240e5
|
Add proper stack size calculation; fix #3398
This issue was reported by https://hackerone.com/ssarong
|
2017-01-12 23:08:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
38acb9ec36
|
Kernel#initialize should not break existing mt; fix #3397
This issue was reported by https://hackerone.com/icanthack
The solution is suggested by @clayton-shopify.
|
2017-01-12 21:43:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
41eff635bf
|
Merge pull request #3393 from clayton-shopify/fix-exc-initialize
Fix broken MRB_INT64
|
2017-01-12 15:31:32 +09:00 |
|
Bouke van der Bijl
|
6be5160eb6
|
Fix 36fc1f14 not checking in the right location
|
2017-01-11 09:10:12 -05:00 |
|
Clayton Smith
|
bc4c90de07
|
Use mrb_int for argc.
|
2017-01-11 09:05:02 -05:00 |
|
Yukihiro "Matz" Matsumoto
|
db1bd078be
|
Use temporary variable to avoid potential crash; fix #3387
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-11 17:59:56 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e1ff71029f
|
String#replace should check replacing string; fix #3374
This issue was reported by https://hackerone.com/tunz
|
2017-01-11 17:51:11 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
06b2e6a76c
|
Check if ci->target_class is NULL before dereferencing
close #3389
This issue was reported by https://hackerone.com/ston3
|
2017-01-11 11:30:52 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
44edc51612
|
Raises Exception if raising exception class is redefined
close #3384
This issue was reported by https://hackerone.com/brakhane
|
2017-01-11 10:29:55 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
7523cdf340
|
Exception#initialize to take arbitrary number of args; ref #3384
|
2017-01-11 10:29:55 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
392d7fbef9
|
Add ary_modify() checks; close #3379
This issue was reported by https://hackerone.com/an0n-j
|
2017-01-07 12:26:29 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
8c11b04d5c
|
Merge pull request #3377 from ksss/respond_to
Check intern object returned by mrb_check_string_type
|
2017-01-06 18:56:39 +09:00 |
|
ksss
|
ddcb30d84b
|
Check intern object returned by mrb_check_string_type
|
2017-01-06 16:27:19 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
885d929398
|
Improve capacity enhancing conditions
|
2017-01-06 14:53:00 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c6a1172592
|
Add pointer cast to pacify warnings.
|
2017-01-06 14:52:04 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9a76a0bd80
|
Move mrb_assert() position.
|
2017-01-06 14:51:21 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f53f73f30c
|
Should not deallocate shared string referring static; fix #3373
|
2017-01-06 14:25:01 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
36f5b44578
|
Add new method Kernel#frozen?; ref #3370
|
2017-01-05 17:49:21 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
2e0c2b5807
|
Add mrb_hash_modify() to Hash#{delete,clear}; ref #3370
This issue was reported by https://hackerone.com/an0n-j
|
2017-01-05 16:46:08 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f388b6d612
|
use size_t instead of int
|
2017-01-02 17:48:44 +09:00 |
|
ksss
|
8a9a24152a
|
Fix memory error on str_buf_cat
Modify from nofree to embed string
|
2017-01-02 17:32:44 +09:00 |
|
ksss
|
30b6648b9c
|
Small refactoring: should use RSTR_CAPA
|
2017-01-02 16:33:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
8b77979667
|
Initialize potentially uninitialized variable z
|
2017-01-01 00:45:14 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1ed4de58d0
|
str_buf_cat(): better size check added; ref #3342
|
2016-12-31 23:33:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
342b1de65c
|
str_buf_cat(): should allocate at least RSTRING_EMBED_LEN_MAX+1.
|
2016-12-31 23:31:45 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
cfdd1e3cc6
|
ary_expand_capa(): refine conditions to avoid infinite loop; ref #3353
|
2016-12-31 23:22:17 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9d84f0d47b
|
ary_expand_capa(): size calculation by size_t; fix #3353
Also more size checks added.
|
2016-12-31 23:09:56 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
270ea41b37
|
method_missing() may have CALL_MAXARGS-1 arguments; fix #3351
The issue was reported by https://hackerone.com/ston3
|
2016-12-30 22:09:32 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6af8cc36b9
|
Merge pull request #3366 from ksss/splice
Check array max size
|
2016-12-28 13:00:14 +09:00 |
|
ksss
|
caba1a19dc
|
Check array max size
Fix #3354
|
2016-12-27 15:48:53 +09:00 |
|
ksss
|
5c1c002ac2
|
Fix segv when primitive value
Fix #3352
|
2016-12-25 16:52:10 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
000a3119ca
|
Merge pull request #3364 from ksss/string2
Check overflow string length
|
2016-12-25 01:35:44 +09:00 |
|
ksss
|
c626b823ca
|
Check overflow string length
Fix #3360
|
2016-12-23 23:31:21 +09:00 |
|
ksss
|
0de65a88d4
|
Do nothing when empty string
Fix #3361
|
2016-12-23 23:13:23 +09:00 |
|
ksss
|
a68b568911
|
Should call initialize method if defined
|
2016-12-22 10:40:13 +09:00 |
|
ksss
|
3cba13c249
|
Proc shouldn't have initialize method
Fix #3356
|
2016-12-21 15:17:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9781f7f0ea
|
Add "not reached" mark in mrb_ary_concat()
|
2016-12-18 02:02:30 +09:00 |
|
Clayton Smith
|
868d2e528f
|
Fix crash when exponent is -2147483648
|
2016-12-15 09:36:22 -05:00 |
|
Clayton Smith
|
73ad7395c0
|
Check type before calling mrb_range_ptr.
|
2016-12-13 10:04:15 -05:00 |
|
Yukihiro "Matz" Matsumoto
|
df35076602
|
Restore callinfo offset in mrb_yield_with_class()
|
2016-12-13 17:17:47 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3bedd22d55
|
Add assertion to make sure new capacity does not overflow.
|
2016-12-13 10:50:04 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
3a7c369536
|
Make sure str->capa is under MRB_INT_MAX; fix #3342
|
2016-12-13 10:48:36 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9cef265402
|
should not try to set classpath for frozen classes; ref #3340
|
2016-12-12 10:34:21 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
1164463a7c
|
freeze classes/modules; ref #3340
|
2016-12-12 01:05:07 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
761562b65f
|
freeze instance variables; ref #3340
|
2016-12-12 01:00:24 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
92c843dd07
|
rename prefix RBASIC_ to MRB_; ref #3340
|
2016-12-12 00:54:36 +09:00 |
|
Takashi Kokubun
|
10bb7ad693
|
Implement Object#freeze
|
2016-12-11 03:44:15 +09:00 |
|