[Renovate] Update dependency com.squareup.okio:okio to v3 [SECURITY] [MEDIUM] - #10
Open
appsec-renovate-bot[bot] wants to merge 1 commit into
Open
[Renovate] Update dependency com.squareup.okio:okio to v3 [SECURITY] [MEDIUM]#10appsec-renovate-bot[bot] wants to merge 1 commit into
appsec-renovate-bot[bot] wants to merge 1 commit into
Conversation
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:
2.9.0→3.4.0Okio Signed to Unsigned Conversion Error vulnerability
CVE-2023-3635 / GHSA-w33c-445m-f8w7
More information
Details
GzipSource does not handle an exception that might be raised when parsing a malformed gzip buffer. This may lead to denial of service of the Okio client when handling a crafted GZIP archive, by using the GzipSource class.
Severity
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
lysine-dev/okio (com.squareup.okio:okio)
v3.4.02023-07-07
java.nio.file.FileSystem) as an Okio FileSystem usingfileSystem.asOkioFileSystem().AssetManageras an Okio FileSystem usingAssetFileSystem. This is in thenew
okio-assetfilesystemmodule. Android applications should prefer this overFileSystem.RESOURCESas it’s faster to load.XLEN) is 32 KiB or larger.FakeFileSystem.canonicalize().createdAtMillisinNodeJsFileSystemfile metadata. We wereincorrectly using
ctimeMs, wherecmeans changed, not created.UnsafeCursoris nowCloseable.v3.3.02023-01-07
use {}is used with a non-local return. We introduced thisperformance and stability bug by not considering that non-local returns execute neither the
returnnorcatchcontrol flows.BufferedSinkandBufferedSource. These were never intendedfor end-users to implement, and we're happy that Kotlin now allows us to express that in our API.
synchronizedtoReentrantLockandCondition. We expect thisto improve help when using Okio with Java virtual threads ([Project Loom][loom]).
v3.2.02022-06-26
com.squareup.okio:okio:3.x.x) to depend on theJVM artifact (
com.squareup.okio:okio-jvm:3.x.x) for Maven builds. This should work-around anissue where Maven doesn't interpret Gradle metadata.
CipherSourceandCipherSinkto recover if the cipher doesn't support streaming.This should work around a crash with AES/GCM ciphers on Android.
v3.1.02022-04-19
multiplatform project please upgrade your project to Kotlin 1.6.20 (or newer) to take advantage
of this. With hierarchical projects it's easier to use properties like
FileSystem.SYSTEMthatare available on most Okio platforms but not all of them.
ForwardingSourceis now available on all platforms.watchosX64platform is now supported.FileSystem.openZip().canonicalize()of ZIP file systems if the path doesn't exist.okio.ProtocolExceptionis a new exception type for multiplatform users. (It is aliased tojava.net.ProtocolExceptionon JVM platforms).v3.0.02021-10-28
This is the first stable release of Okio 3.x. This release is strongly backwards-compatible with
Okio 2.x, and the new major version signifies new capabilities more than it does backwards
incompatibility.
Most users should be able to upgrade from 2.x by just changing the version. If you're using Okio
in a Kotlin Multiplatform project, you'll need to drop the
-multiplatformsuffix in your Gradledependencies.
New: Remove
@ExperimentalFileSystem. This annotation is no longer necessary as the file systemis no longer experimental!
New: Path no longer aggressively normalizes
..segments. UsePath.normalize()to apply thesebased on the content of the path, or
FileSystem.canonicalize()to do it honoring any symlinkson a particular file system.
New: Publish a [bill of materials (BOM)][bom] for Okio. Depend on this from Gradle or Maven to
keep all of your Okio artifacts on the same version, even if they're declared via transitive
dependencies. You can even omit versions when declaring other Okio dependencies.
dependencies { api(platform("com.squareup.okio:okio-bom:3.0.0")) api("com.squareup.okio:okio") // No version! api("com.squareup.okio:okio-fakefilesystem") // No version! }New:
FileSystem.delete()silently succeeds when deleting a file that doesn't exist. Usethe new
mustExistparameter to trigger an exception instead.New:
FileSystem.createDirectories()silently succeeds when creating a directory that alreadyexists. Use the new
mustCreateparameter to trigger an exception instead.New:
FileSystemoffers Java-language overloads where appropriate. Previously functions thathad default parameters were potentially awkward to invoke from Java.
New:
Timeout.intersectWith()returns a value instead ofUnit. This is a binary-incompatiblechange. We expect that this public API is very rarely used outside of Okio itself.
Fix: Change
BufferedSource.readDecimalLong()to fail if the input value is just-. PreviouslyOkio incorrectly returned
0for this.v2.10.02021-01-07
HashingSource,HashingSink, buffer hash functions, andUnsafeCursoron non-JVMplatforms. Previously these were all JVM-only.
CloseableonSinkandSourceon non-JVM platforms. Okio now includes amultiplatform
okio.Closeableinterface and correspondinguse {}extension. Closing resourceswhen you're done with them shouldn't be JVM-only!
Sink.hashingSinkandSource.hashingSourcefunctions that acceptjava.security.MessageDigestandjavax.crypto.Macinstances. Use these when your hash functionisn't built-in.
ShortBufferExceptioninCipherSinkandCipherSourceon Android.(Android may throw a
ShortBufferExceptioneven if the buffer is not too short. We nowavoid this problem!)
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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 has been generated by Mend Renovate CLI.