summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* Removed no longer used variablesNobuyoshi Nakada2021-06-141-1/+0
|
* Add scheduler hook `Addrinfo.getaddrinfo`. (#4375)Samuel Williams2021-06-144-278/+316
| | | Co-authored-by: Bruno Sutic <code@brunosutic.com>
* Suppress array-parameter warnings by gcc 11Nobuyoshi Nakada2021-06-131-6/+6
|
* Check if alternative malloc header can work in C++Nobuyoshi Nakada2021-06-131-0/+4
| | | | | jemalloc (5.2.1 at least) cannot compile in C++ on macOS SDK, due to conflicts on exception specification.
* [ruby/psych] Bump version to 4.0.1Hiroshi SHIBATA2021-06-071-1/+1
| | | | https://github.com/ruby/psych/commit/4049939006
* [ruby/psych] Implement YAML.safe_dump to make safe_load more usable.Jean Boussier2021-06-074-5/+125
| | | | | | | | | | | In case where Psych is used as a two way serializers, e.g. to serialize some cache or config, it is preferable to have the same restrictions on both load and dump. Otherwise you might dump and persist some objects payloads that you later won't be able to read. https://github.com/ruby/psych/commit/441958396f
* [ruby/psych] Make YAML.load_file use YAML.load instead of safe_loadYusuke Endoh2021-06-071-2/+11
| | | | | | | | | | YAML.load and YAML.safe_load are different a little; the former allows Symbol by default but the latter doesn't. So YAML.load_file and YAML.safe_load_file should reflect the difference. Fixes #490 https://github.com/ruby/psych/commit/f8a5e512a1
* Fix `_MSC_VER` warningsDaisuke Fujimura (fd0)2021-06-033-11/+11
|
* Removed gdbm from ruby repoHiroshi SHIBATA2021-05-255-1510/+0
|
* Removed dbm from ruby repoHiroshi SHIBATA2021-05-254-1631/+0
|
* ext/json/parser/parser.h: Add fallback MAYBE_UNUSEDNobuyoshi Nakada2021-05-191-0/+4
| | | | https://github.com/flori/json/commit/e2ad91fc2094d3cc2f76adc6c55d420cd06f34d8
* ext/json/parser/prereq.mk: fix warnings for code generated by ragelNobuyoshi Nakada2021-05-182-32/+33
| | | | | * type-limits when plain-char is unsigned * unused-const-variable for NFA constants
* [ruby/fiddle] windows: link to ws2_32 for WSAGetLastError()Sutou Kouhei2021-05-181-0/+2
| | | | https://github.com/ruby/fiddle/commit/e9955d74ae
* [ruby/fiddle] windows: add Fiddle.win32_last_socket_error{,=}Sutou Kouhei2021-05-182-2/+21
| | | | | | | | | | | | | GitHub: fix GH-72 Users can't use WSAGetLastError() with Ruby 3.0 or later because rb_funcall() resets the last socket error internally. Users can get the last socket error by Fiddle.win32_last_socket_error. Reported by Kentaro Hayashi. Thanks!!! https://github.com/ruby/fiddle/commit/76158db00a
* [ruby/fiddle] Add support for "const" in typeSutou Kouhei2021-05-181-2/+4
| | | | | | | | GitHub: fix #68 Reported by kojix2. Thanks!!! https://github.com/ruby/fiddle/commit/d7322c234a
* [ruby/fiddle] Add --enable-debug-build option to extconf.rbSutou Kouhei2021-05-181-0/+41
| | | | https://github.com/ruby/fiddle/commit/e0498e60ea
* [ruby/fiddle] win32types: sortSutou Kouhei2021-05-181-15/+15
| | | | https://github.com/ruby/fiddle/commit/35dec6c5a5
* [ruby/fiddle] Fix more Win32Types definitionsSutou Kouhei2021-05-181-11/+12
| | | | | | https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types https://github.com/ruby/fiddle/commit/805c1a595a
* [ruby/fiddle] Fix Win32Types for Windows 64-bit (#63)Orgad Shaneh2021-05-181-4/+4
| | | | | | https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types https://github.com/ruby/fiddle/commit/28ee5b1608
* [ruby/fiddle] Bump versionSutou Kouhei2021-05-181-1/+1
| | | | https://github.com/ruby/fiddle/commit/0cbd370fd6
* [ruby/fiddle] closure: add support for const char *Sutou Kouhei2021-05-181-0/+8
| | | | | | | | GitHub: fix GH-62 Reported by Cody Krieger. Thanks!!! https://github.com/ruby/fiddle/commit/284b820f2d
* [ruby/fiddle] closure: accept symbol as typeSutou Kouhei2021-05-181-6/+12
| | | | https://github.com/ruby/fiddle/commit/dc2da6633e
* [ruby/fiddle] Remove wrong commentSutou Kouhei2021-05-181-1/+0
| | | | https://github.com/ruby/fiddle/commit/831522e768
* [ruby/fiddle] Bump versionKenta Murata2021-05-181-1/+1
| | | | https://github.com/ruby/fiddle/commit/63e5f98412
* Bump version of required_ruby_version to 2.3. Fixes #464Hiroshi SHIBATA2021-05-171-1/+1
|
* [flori/json] Deduplicate strings inside json_string_unescapeJean Boussier2021-05-174-72/+85
| | | | | | [ci 2] https://github.com/flori/json/commit/1982070cb8
* [flori/json] Refactor json_string_unescapeJean Boussier2021-05-173-1822/+3007
| | | | https://github.com/flori/json/commit/f398769332
* [flori/json] Fix incorrect `#` position in API docMasafumi Koba2021-05-171-1/+1
| | | | | | This change fixes an incorrect `#` position in the API documentation of the `JSON` module. https://github.com/flori/json/commit/dc4b62424f
* [ruby/psych] remove deprecated interfaceAaron Patterson2021-05-171-54/+6
| | | | https://github.com/ruby/psych/commit/0767227051
* [ruby/psych] Bump versionAaron Patterson2021-05-171-1/+1
| | | | https://github.com/ruby/psych/commit/1df86a2e81
* [ruby/psych] Use Psych.safe_load by defaultAaron Patterson2021-05-171-6/+47
| | | | | | | | | | | Psych.load is not safe for use with untrusted data. Too many applications make the mistake of using `Psych.load` with untrusted data and that ends up with some kind of security vulnerability. This commit changes the default `Psych.load` to use `safe_load`. Users that want to parse trusted data can use Psych.unsafe_load. https://github.com/ruby/psych/commit/176494297f
* [ruby/psych] Introduce `Psych.unsafe_load`Aaron Patterson2021-05-172-5/+7
| | | | | | | | | | | | | | | | In future versions of Psych, the `load` method will be mostly the same as the `safe_load` method. In other words, the `load` method won't allow arbitrary object deserialization (which can be used to escalate to an RCE). People that need to load *trusted* documents can use the `unsafe_load` method. This commit introduces the `unsafe_load` method so that people can incrementally upgrade. For example, if they try to upgrade to 4.0.0 and something breaks, they can downgrade, audit callsites, change to `safe_load` or `unsafe_load` as required, and then upgrade to 4.0.0 smoothly. https://github.com/ruby/psych/commit/cb50aa8d3f
* [ruby/psych] Fix symabolize_name with non-string keysJean Boussier2021-05-171-1/+1
| | | | https://github.com/ruby/psych/commit/1c5c29e81f
* [ruby/psych] feat: allow scalars and sequences to be styled when dumpedJeremy Ebler2021-05-171-2/+2
| | | | https://github.com/ruby/psych/commit/546154ddb7
* ext/objspace/lib/objspace/trace.rb: Remove the original Kernel#pYusuke Endoh2021-05-141-0/+1
| | | | | | | | | | | | | ... to disable a "method redefined" warning. http://rubyci.s3.amazonaws.com/solaris11-gcc/ruby-master/log/20210514T050008Z.fail.html.gz ``` 1) Failure: TestObjSpace#test_objspace_trace [/export/home/chkbuild/chkbuild-gcc/tmp/build/20210514T050008Z/ruby/test/objspace/test_objspace.rb:621]: <["objspace/trace is enabled"]> expected but was <["/export/home/chkbuild/chkbuild-gcc/tmp/build/20210514T050008Z/ruby/.ext/common/objspace/trace.rb:29: warning: method redefined; discarding old p", "objspace/trace is enabled"]>. ```
* ext/objspace/lib/objspace/trace.rb: AddedYusuke Endoh2021-05-141-0/+44
| | | | | | | | | This file, when require'ed, starts tracing the object allocations, and redefines `Kernel#p` to show the allocation site. This commit is experimental; the library name and APIs may change. [Feature #17762]
* [ruby/psych] Fix some typos [ci skip]Ryuta Kamizono2021-05-104-7/+7
| | | | https://github.com/ruby/psych/commit/98617e55a1
* [ruby/psych] bump versionAaron Patterson2021-05-101-1/+1
| | | | https://github.com/ruby/psych/commit/091cd46b1f
* [ruby/psych] docs: fix simple typo, expessed -> expressedTim Gates2021-05-101-1/+1
| | | | | | | | There is a small typo in ext/psych/yaml/yaml.h. Should read `expressed` rather than `expessed`. https://github.com/ruby/psych/commit/1150d669cb
* [ruby/psych] Update to latest SnakeYAMLCharles Oliver Nutter2021-05-101-1/+1
| | | | | | Fixes jruby/jruby#6365 https://github.com/ruby/psych/commit/a88ff77f02
* [ruby/psych] Fix custom marshalization with symbolize_names: trueJean Boussier2021-05-101-3/+3
| | | | https://github.com/ruby/psych/commit/ee26f26ab5
* [ruby/psych] Cache dispatch cache in an instance variableJean Boussier2021-05-101-1/+1
| | | | https://github.com/ruby/psych/commit/285c461cd2
* [ruby/psych] Cache access to Psych.load_tags in Visitor::ToRubyJean Boussier2021-05-101-4/+6
| | | | https://github.com/ruby/psych/commit/58223f0426
* Allow newobj_of0 and newobj_slowpath to allocate into multiple heap slotsMatt Valentine-House2021-05-061-0/+2
|
* [ruby/strscan] Replace "iff" with "if and only if" (#18)Gannon McGibbon2021-05-061-3/+3
| | | | | | | | | iff means if and only if, but readers without that knowledge might assume this to be a spelling mistake. To me, this seems like exclusionary language that is unnecessary. Simply using "if and only if" instead should suffice. https://github.com/ruby/strscan/commit/066451c11e
* [ruby/strscan] Fix segmentation fault of `StringScanner#charpos` when ↵Kenichi Kamiya2021-05-061-4/+1
| | | | | | `String#byteslice` returns non string value [Bug #17756] (#20) https://github.com/ruby/strscan/commit/92961cde2b
* Import from https://github.com/ruby/strscan/pull/19Hiroshi SHIBATA2021-05-061-4/+0
| | | | | | * Use Gemfile instead of Gem::Specification#add_development_dependency. * Use pend instead of skip for test-unit.
* Fix -Wundef warnings for patterns `#if HAVE`Benoit Daloze2021-05-042-2/+2
| | | | | | * See [Feature #17752] * Using this to detect them: git grep -P 'if\s+HAVE' | grep -Pv 'HAVE_LONG_LONG|/ChangeLog|HAVE_TYPEOF'
* Fix -Wundef warnings for HAVE_RB_EXT_RACTOR_SAFEBenoit Daloze2021-05-044-4/+4
| | | | * See [Feature #17752]
* Fix -Wundef warnings in core extensionsBenoit Daloze2021-05-042-3/+3
| | | | * See [Feature #17752]