chore(deps): Update Rust crate git2 to v0.20.4 [SECURITY]#116
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): Update Rust crate git2 to v0.20.4 [SECURITY]#116renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
Pull Request Test Coverage Report for Build 21951879247Details
💛 - Coveralls |
2fbbeac to
964def6
Compare
964def6 to
18aad54
Compare
18aad54 to
57a3b52
Compare
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:
0.16.0→0.20.4GitHub Vulnerability Alerts
GHSA-m4ch-rfv5-x5g3
The git2 and libgit2-sys crates are Rust wrappers around the libgit2 C library. It was discovered that libgit2 1.5.0 and below did not verify SSH host keys when establishing an SSH connection, exposing users of the library to Man-In-the-Middle attacks.
The libgit2 team assigned CVE-2023-22742 to this vulnerability. The following versions of the libgit2-sys Rust crate have been released:
A new git2 crate version has also been released, 0.16.1. This version only bumps its libgit2-sys dependency to ensure no vulnerable libgit2-sys versions are used, but contains no code changes: if you update the libgit2-sys version there is no need to also update the git2 crate version.
You can learn more about this vulnerability in libgit2's advisory
GHSA-j39j-6gw9-jw6h
If the Buf struct is dereferenced immediately after calling new() or default() on the Buf struct, a null pointer is passed to the unsafe function slice::from_raw_parts. According to the safety section documentation of the function, data must be non-null and aligned even for zero-length slices or slices of ZSTs. Thus, passing a null pointer will lead to undefined behavior.
Release Notes
rust-lang/git2-rs (git2)
v0.20.4Compare Source
v0.20.3Compare Source
v0.20.2Compare Source
0.20.1...0.20.2
Added
Status::WT_UNREADABLE.#1151
Fixed
GIT_EDIRECTORY,GIT_EMERGECONFLICT,GIT_EUNCHANGED,GIT_ENOTSUPPORTED, andGIT_EREADONLYtoError::raw_code.#1153
Indexer::new.#1160
v0.20.1Compare Source
0.20.1...0.20.2
Added
Status::WT_UNREADABLE.#1151
Fixed
GIT_EDIRECTORY,GIT_EMERGECONFLICT,GIT_EUNCHANGED,GIT_ENOTSUPPORTED, andGIT_EREADONLYtoError::raw_code.#1153
Indexer::new.#1160
v0.20.0Compare Source
0.20.0...0.20.1
Added
Repository::branch_upstream_merge()#1131
Index::conflict_get()#1134
Index::conflict_remove()#1133
opts::set_cache_object_limit()#1118
Repo::merge_file_from_index()and associatedMergeFileOptionsandMergeFileResult.#1062
Changed
urldependency minimum raised to 2.5.4#1128
#1121
CredentialHelper::config) now checks for helpers that start with something that looks like an absolute path, rather than checking for a/or\anywhere in the helper string (which resolves an issue if the helper had arguments with/or\).#1137
Fixed
Remote::url_bytesif the url is empty.#1120
Patch::delta,Patch::hunk, andPatch::line_in_hunk. The return values must not outlive thePatch.#1141
#1143
v0.19.0Compare Source
0.19.0...0.20.0
Added
Debugis now implemented fortransport::Service#1074
Repository::commondir#1079
Repository::merge_base_octopus#1088
PartialOrd,Ord, andHashfor bitflags types that were inadvertently removed in a prior release.#1096
CheckoutBuilder::disable_pathspec_match#1107
PackBuilder::write#1110
Changed
#1111
ssh_key_from_memoryCargo feature, it was unused.#1087
Tree::walkare now correctly reported to the caller.#1098
trace_setcallback now takes a&[u8]instead of a&str.#1071
Error::last_errornow returnsErrorinstead ofOption<Error>.#1072
Fixed
OdbReader::readreturn value.#1061
#1075
v0.18.3Compare Source
0.18.2...0.18.3
Added
opts::functions to get / set libgit2 mwindow options#1035
Changed
#1007
v0.18.2Compare Source
0.18.2...0.18.3
Added
opts::functions to get / set libgit2 mwindow options#1035
Changed
#1007
v0.18.1Compare Source
0.20.0...0.20.1
Added
Repository::branch_upstream_merge()#1131
Index::conflict_get()#1134
Index::conflict_remove()#1133
opts::set_cache_object_limit()#1118
Repo::merge_file_from_index()and associatedMergeFileOptionsandMergeFileResult.#1062
Changed
urldependency minimum raised to 2.5.4#1128
#1121
CredentialHelper::config) now checks for helpers that start with something that looks like an absolute path, rather than checking for a/or\anywhere in the helper string (which resolves an issue if the helper had arguments with/or\).#1137
Fixed
Remote::url_bytesif the url is empty.#1120
Patch::delta,Patch::hunk, andPatch::line_in_hunk. The return values must not outlive thePatch.#1141
#1143
v0.18.0Compare Source
0.18.0...0.18.1
Added
FetchOptions::depthto set the depth of a fetch or clone, adding support for shallow clones.#979
Fixed
TreeWalkCbData) to not assume it is a transparent type while casting.#989
DiffPatchidOptionsandStashSaveOptionsare publicly exported allowing the corresponding APIs to actually be used.#988
v0.17.2Compare Source
0.17.2...0.18.0
Added
Blame::blame_bufferfor getting blame data for a file that has been modified in memory.#981
Changed
#968
#982
#973
Revwalk::with_hide_callbackto take a mutable reference to its callback to enforce type safety.#970
FusedIteratorfor many iterators that can support it.#955
Fixed
-Zminimal-versions.#960
v0.17.1Compare Source
0.17.1...0.17.2
Added
#930
v0.17.0Compare Source
0.17.0...0.17.1
Changed
#948
v0.16.1Compare Source
0.16.1...0.17.0
Added
IntoIteratorimplementation forStatuses.#880
Reference::symbolic_set_target#893
Copy,Clone,Debug,PartialEq, andEqimplementations forAutotagOptionandFetchPrune.#889
EqandPartialEqimplementations forSignature.#890
Repository::discover_path.#883
Submodule::repo_init.#914
Tag::is_valid_name.#882
Repository::set_head_bytes.#931
Indexertype which is a low-level API for storing and indexing pack files.#911
Index::find_prefix.#903
FileMode.#887
PushCallbacks::push_negotiationcallback and the correspondingPushUpdatetype for getting receiving information about the updates to perform.#926
Changed
This brings in many changes, including better SSH host key support on Windows and better SSH host key algorithm negotiation.
1.6.3 is now the minimum supported version.
#935
This brings in numerous changes, including SHA2 algorithm support with RSA.
#919
RemoteCallbacks::credentialscallback error handler to correctly set the libgit2 error class.#918
DiffOptions::flagnow takes agit_diff_option_ttype.#935
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.