Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stack overflow in SSHCredentials constructor #21779

Merged
merged 1 commit into from
May 11, 2017
Merged

Conversation

ararslan
Copy link
Member

Fixes #21775

@ararslan ararslan added backport pending 0.6 bugfix This change fixes an existing bug libgit2 The libgit2 library or the LibGit2 stdlib module labels May 10, 2017
@ararslan ararslan requested a review from kshyatt May 10, 2017 19:33
test/libgit2.jl Outdated
@testset "Issue #21775" begin
okay = true
try
cred = LibGit2.SSHCredentials("rick", "astley")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Copy link
Contributor

@kshyatt kshyatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but you might want @Keno or @omus to take a look as well.

Copy link
Member

@omus omus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix looks good. I accidentally introduced this in #20738.

test/libgit2.jl Outdated
finally
@test okay
end
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we need to explicitly be testing for a StackOverflow. Maybe just a basic test which uses this constructor should be added into the "Credentials" testset?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. I was just being lazy here. Implemented your suggestion. Thanks!

@ararslan
Copy link
Member Author

64-bit AV failure is unrelated

@ararslan ararslan merged commit 1129de3 into master May 11, 2017
@ararslan ararslan deleted the aa/sshcreds branch May 11, 2017 15:07
tkelman pushed a commit that referenced this pull request May 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug libgit2 The libgit2 library or the LibGit2 stdlib module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants