| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2017-03-05 | String#index shouldn't return nil when "".index "" | ksss | |
| 2017-02-28 | Fix integer overflow; fix #3473 | Yukihiro "Matz" Matsumoto | |
| The fix is suggested by https://hackerone.com/lucnguyen | |||
| 2017-02-28 | Add type check by mrb_get_args(); ref #3476 | Yukihiro "Matz" Matsumoto | |
| 2017-02-28 | Add check before calling str_substr(); ref #3476 | Yukihiro "Matz" Matsumoto | |
| 2017-02-28 | Check if the value is fixnum before mrb_funcall(); fix #3476 | Yukihiro "Matz" Matsumoto | |
| The issue is reported by https://hackerone.com/aerodudrizzt | |||
| 2017-02-11 | Revert "Optimization for String#* for 1-byte strings" | Tomasz Dabrowski | |
| This reverts commit d1bc7caecaf337976351934d5910726106601bd9. | |||
| 2017-02-11 | String#replace should update s->flags for MRB_STR_NO_UTF. | Yukihiro "Matz" Matsumoto | |
| Otherwise String#size may return wrong length; fix #3448 | |||
| 2017-02-11 | Add type cast to pacify warning | Yukihiro "Matz" Matsumoto | |
| 2017-02-10 | Optimization for String#* for 1-byte strings | Tomasz Dabrowski | |
| 2017-02-07 | Fix interpolation escaping in String.inspect | Edgar Boda-Majer | |
| 2017-01-23 | Changed the behavior of mrb_range_beg_len(); close #3411 | Yukihiro "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-23 | Should not make empty strings shared; fix #3407 | Yukihiro "Matz" Matsumoto | |
| 2017-01-11 | String#replace should check replacing string; fix #3374 | Yukihiro "Matz" Matsumoto | |
| This issue was reported by https://hackerone.com/tunz | |||
| 2017-01-06 | Improve capacity enhancing conditions | Yukihiro "Matz" Matsumoto | |
| 2017-01-06 | Add pointer cast to pacify warnings. | Yukihiro "Matz" Matsumoto | |
| 2017-01-06 | Move mrb_assert() position. | Yukihiro "Matz" Matsumoto | |
| 2017-01-06 | Should not deallocate shared string referring static; fix #3373 | Yukihiro "Matz" Matsumoto | |
| 2017-01-02 | Fix memory error on str_buf_cat | ksss | |
| Modify from nofree to embed string | |||
| 2017-01-02 | Small refactoring: should use RSTR_CAPA | ksss | |
| 2016-12-31 | str_buf_cat(): better size check added; ref #3342 | Yukihiro "Matz" Matsumoto | |
| 2016-12-31 | str_buf_cat(): should allocate at least RSTRING_EMBED_LEN_MAX+1. | Yukihiro "Matz" Matsumoto | |
| 2016-12-25 | Merge pull request #3364 from ksss/string2 | Yukihiro "Matz" Matsumoto | |
| Check overflow string length | |||
| 2016-12-23 | Check overflow string length | ksss | |
| Fix #3360 | |||
| 2016-12-23 | Do nothing when empty string | ksss | |
| Fix #3361 | |||
| 2016-12-15 | Fix crash when exponent is -2147483648 | Clayton Smith | |
| 2016-12-13 | Add assertion to make sure new capacity does not overflow. | Yukihiro "Matz" Matsumoto | |
| 2016-12-13 | Make sure str->capa is under MRB_INT_MAX; fix #3342 | Yukihiro "Matz" Matsumoto | |
| 2016-12-12 | rename prefix RBASIC_ to MRB_; ref #3340 | Yukihiro "Matz" Matsumoto | |
| 2016-12-11 | Implement Object#freeze | Takashi Kokubun | |
| 2016-12-08 | Removed unnecessary const macro - const keyword is already a dependency | Felix Jones | |
| 2016-12-08 | disable define const on VS | Yasuhiro Matsumoto | |
| 2016-12-07 | Removed the errno declaration from string.c | Felix Jones | |
| 2016-12-07 | Wrapped string.c errno with ifndef macro for platforms that use inbuilt ↵ | Felix Jones | |
| errno macro | |||
| 2016-12-03 | add MRB_API to mrb_float_read(); ref #3270 | Yukihiro "Matz" Matsumoto | |
| 2016-12-03 | Import locale insensitive strtod() from Ruby1.8; fix #3270 | Yukihiro "Matz" Matsumoto | |
| The function was renamed to `mrb_float_read(const char*, char**)`. | |||
| 2016-11-24 | Get String length after args in String#chomp! | Clayton Smith | |
| Fixes RCE issue Reported by @bouk | |||
| 2016-11-24 | Fixes for compiling mruby as C++ | Tomasz Dąbrowski | |
| 2016-11-17 | String#include? does not take integers | Yukihiro "Matz" Matsumoto | |
| 2016-11-16 | Correct argument specifications for few methods: | Tomasz Dąbrowski | |
| - Struct#values_at - Module#define_method - String#chop - String#chop! | |||
| 2016-09-27 | mrb_str_strlen() should be MRB_API; ref #3216 | Yukihiro "Matz" Matsumoto | |
| 2016-09-25 | Remove needless MRB_API | Kouhei Sutou | |
| ref #3215 If a function (such as mrb_read_irep_file()) is declared without MRB_API in header file (such as include/mruby/dump.h), implementation of the function in source file (such as src/load.c) should also defined without MRB_API. If MRB_API is mismatch, Visual C++ reports link error with C2375 error code: https://msdn.microsoft.com/en-us/library/5k6kw95a.aspx | |||
| 2016-02-05 | [cppcheck] mrb_str_rindex() remove unnecessary len update by chars2bytes() | Yukihiro "Matz" Matsumoto | |
| 2016-02-04 | cache UTF8 status for utf8_strlen(); ref #980 | Yukihiro "Matz" Matsumoto | |
| 2016-01-14 | Fix all zero string case | Syohei YOSHIDA | |
| 2016-01-05 | bytes2chars() conversion to fail if target byte offset is not on the ↵ | Yukihiro "Matz" Matsumoto | |
| character boundary; ref #3067 that means String#index matches first byte of a multi-byte character. this behavior is different from CRuby, but a compromise for mruby which does not have encoding stuffs. | |||
| 2015-12-31 | Use memchr for performance | ksss | |
| ```ruby s = "b" str = ("a" * 100 + s) t = Time.now str.index(s) puts Time.now - t ``` before => 0.000788 after => 0.000508 --- ```ruby s = "b" str = ("a" * 100 * 1024 * 1024 + s) t = Time.now str.index(s) puts Time.now - t ``` before => 0.225474 after => 0.008658 | |||
| 2015-12-22 | fix build on VS2012 | Yasuhiro Matsumoto | |
| 2015-12-16 | mrb_str_len_to_inum(): fixed a bug with MRB_INT_MIN conversion; fix #3048 | Yukihiro "Matz" Matsumoto | |
| 2015-12-16 | mrb_str_len_to_inum(): fixed a bug with underscores in digits; fix #3049 | Yukihiro "Matz" Matsumoto | |
| 2015-12-14 | mrb_str_len_to_inum(): string may not be NUL terminated; ref #3043 | Yukihiro "Matz" Matsumoto | |
