Update dependency oj to v3.17.6 - #11928
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
renovate
Bot
force-pushed
the
renovate/oj-3.x-lockfile
branch
from
August 17, 2026 11:15
1a8f3b7 to
bce86bf
Compare
Contributor
Code Coverage Report: Only Changed Files listed
Minimum allowed coverage is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.17.4→3.17.6Release Notes
ohler55/oj (oj)
v3.17.6Compare Source
escape: falsefroze the options as they stood beforeset_encoderwrotetime_precisioninto them, soto_json(escape: false)emitted 9 fractional digits. An options hash that names no option Oj knows no longer detaches an encoder from the defaults. (#1093)v3.17.5Compare Source
Most of this release comes out of a security review of the C extension. There are no API changes.
Memory safety
^mvalue and a key of exactly 65,536 bytes read forward until they left mapped memory. (#1055)fill_indent()had not assured the buffer first. (#1058)Oj::Docpath depth limit being checked one level too late. (#1061)Oj::Parser#filebeing taken as a read ofSIZE_MAXbytes, which wrote in front of the buffer and then reparsed it forever without checking for interrupts. (#1072):float_formattoo long for the 64 byte buffer copying stack bytes past the end of it into the output. (#1073)create_idwhen a call passes:create_id => nil. (#1074)Oj::Parser#fileand the descriptor it leaked. (#1076)Oj::Doc. (#1077):onlyor:except. (#1078):float_formataccepting directives it has no argument for. (#1083)Memory leaks
create_idwhen it is set a second time. (#1085)Oj::Parser.neworOj::Parser.saferaises on an argument it does not take. (#1086)Parsing and dumping
:custommode dump of an exception that was never raised opening with{,. (#1082):wabmode time load being an offset out on Windows, wheremktime()stood in fortimegm()and returned -1 for any time before the epoch. (#1088)Oj::Docdropping the exponent of a number written without a decimal point, so1e3loaded as1. (#1089)Rails
to_json(only:)orto_json(except:)dropping theinclude_root_in_jsonwrapper key and the keys added by:methods. (#1039)as_jsonoptions reaching only the first element of a container, soto_json(only:),to_json(methods:)and any customas_json(opts)took effect on one row and nowhere else. (#1040)ActiveSupport::JSON.encode, and picks up laterOj.default_optionsandActiveSupport::JSON::Encodingchanges. (#1049)as_jsonbeing handed the encoder's own options hash. ActiveSupport allowsas_jsonto write into it, and ActiveSupport 8.1 caches one encoder per process, so a single suchas_jsoncould leave:onlyset for every laterto_json. (#1050)Documentation
:skip_null_byteoption to:omit_null_byte, which is the name that works. (#1041)--with-sse42install option from InstallOptions.md. SIMD support is detected at runtime. (#1042):usualrather than:saj. (#1044):customthe default mode. The default is:object. (#1045):safeoption from String to Boolean. (#1046)exception,set_backtraceandreplaceare. The page now also says which modeOj.loaduses. (#1080)Tests and CI
rakenever running thetest/test_*.rbsuite. TheRake::TestTaskthat definedtestwas commented out, sotest_allinvoked a synthesized no-op file task. (#1084)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.